blob: 8d0f1aa525fb76aeefeaee018eae0b4d27fd36d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
http://lists.altlinux.org/pipermail/devel/2010-May/182161.html
--- elfutils/libebl/eblsymbolbindingname.c
+++ elfutils/libebl/eblsymbolbindingname.c
@@ -84,7 +84,9 @@ ebl_symbol_binding_name (ebl, binding, b
snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC);
else if (binding == STB_GNU_UNIQUE
&& (ident = elf_getident (ebl->elf, NULL)) != NULL
- && ident[EI_OSABI] == ELFOSABI_LINUX)
+ && (ident[EI_OSABI] == ELFOSABI_LINUX ||
+ /* GNU/Linux is still using the default value 0. */
+ ident[EI_OSABI] == ELFOSABI_NONE))
return "GNU_UNIQUE";
else if (binding >= STB_LOOS && binding <= STB_HIOS)
snprintf (buf, len, "LOOS+%d", binding - STB_LOOS);
|