summaryrefslogtreecommitdiff
path: root/bfd/elfn32-mips.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-08-06 13:08:24 +0000
committerJakub Jelinek <jakub@redhat.com>2009-08-06 13:08:24 +0000
commit9b4ffeb56ae4c34d123260a99e4108f1127b1528 (patch)
tree85e1d60f7115f6c51ab8fa5ac8bbcc3f47f6ba66 /bfd/elfn32-mips.c
parentc5acf24cd6835f7a3627a8b1784f543fb65d20cf (diff)
downloadbinutils-redhat-9b4ffeb56ae4c34d123260a99e4108f1127b1528.tar.gz
PR binutils/10492
* elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE symbols. * elf32-mips.c (mips_elf_sym_is_global): Likewise. * elfn32-mips.c (mips_elf_sym_is_global): Likewise.
Diffstat (limited to 'bfd/elfn32-mips.c')
-rw-r--r--bfd/elfn32-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfn32-mips.c b/bfd/elfn32-mips.c
index aea3e5af2a..c1016f3f12 100644
--- a/bfd/elfn32-mips.c
+++ b/bfd/elfn32-mips.c
@@ -2289,7 +2289,7 @@ mips_elf_sym_is_global (bfd *abfd ATTRIBUTE_UNUSED, asymbol *sym)
if (SGI_COMPAT (abfd))
return (sym->flags & BSF_SECTION_SYM) == 0;
else
- return ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
+ return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
|| bfd_is_und_section (bfd_get_section (sym))
|| bfd_is_com_section (bfd_get_section (sym)));
}