blob: d9342c43d8da9fcfaff6278cdb0398bdfdf29c89 (
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-0.147/libebl/eblsymbolbindingname.c- 2010-05-26 09:40:03.000000000 +0400
+++ elfutils-0.147/libebl/eblsymbolbindingname.c 2010-05-26 09:41:33.298035426 +0400
@@ -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);
|