summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c8
-rw-r--r--gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c b/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c
index 47cf31cfee8..9df8823ae5c 100644
--- a/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c
+++ b/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.c
@@ -11133,3 +11133,11 @@ _bfd_mips_elf_ignore_undef_symbol (struct elf_link_hash_entry *h)
{
return ELF_MIPS_IS_OPTIONAL (h->other) ? TRUE : FALSE;
}
+
+bfd_boolean
+_bfd_mips_elf_common_definition (Elf_Internal_Sym *sym)
+{
+ return (sym->st_shndx == SHN_COMMON
+ || sym->st_shndx == SHN_MIPS_ACOMMON
+ || sym->st_shndx == SHN_MIPS_SCOMMON);
+}
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.h b/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.h
index 6c3c9a30f6e..88e83f1a7d4 100644
--- a/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.h
+++ b/gnu/usr.bin/binutils-2.17/bfd/elfxx-mips.h
@@ -141,6 +141,9 @@ extern bfd_boolean _bfd_mips_elf_ignore_undef_symbol
extern const struct bfd_elf_special_section _bfd_mips_elf_special_sections [];
+extern bfd_boolean _bfd_mips_elf_common_definition (Elf_Internal_Sym *);
+
+#define elf_backend_common_definition _bfd_mips_elf_common_definition
#define elf_backend_name_local_section_symbols \
_bfd_mips_elf_name_local_section_symbols
#define elf_backend_special_sections _bfd_mips_elf_special_sections