summaryrefslogtreecommitdiffstats
path: root/libebl/eblsymbolbindingname.c
diff options
context:
space:
mode:
Diffstat (limited to 'libebl/eblsymbolbindingname.c')
-rw-r--r--libebl/eblsymbolbindingname.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libebl/eblsymbolbindingname.c b/libebl/eblsymbolbindingname.c
index 97974253..75565fe8 100644
--- a/libebl/eblsymbolbindingname.c
+++ b/libebl/eblsymbolbindingname.c
@@ -58,6 +58,7 @@ ebl_symbol_binding_name (Ebl *ebl, int binding, char *buf, size_t len)
if (binding >= STB_LOPROC && binding <= STB_HIPROC)
snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC);
else if (binding == STB_GNU_UNIQUE
+ && ebl != NULL
&& (ident = elf_getident (ebl->elf, NULL)) != NULL
&& ident[EI_OSABI] == ELFOSABI_LINUX)
return "GNU_UNIQUE";