]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elfxx-mips.c (_bfd_mips_elf_common_definition): New function.
authorNick Clifton <nickc@redhat.com>
Tue, 18 Jul 2006 08:56:44 +0000 (08:56 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 18 Jul 2006 08:56:44 +0000 (08:56 +0000)
  Consider SHN_MIPS_ACOMMON and SHN_MIPS_SCOMMON as being common sections.
* elfxx-mips.h  (_bfd_mips_elf_common_definition): Prototype.

bfd/ChangeLog
bfd/elfxx-mips.c
bfd/elfxx-mips.h

index 07bf4c41559afe33057f41523063e4370c6f565a..6c4773ed28a588e5ee429128c52eca61207a3e19 100644 (file)
@@ -1,3 +1,10 @@
+2006-07-18  Nick Clifton  <nickc@redhat.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_common_definition): New function.
+       Consider SHN_MIPS_ACOMMON and SHN_MIPS_SCOMMON as being common
+       sections.
+       * elfxx-mips.h  (_bfd_mips_elf_common_definition): Prototype.
+
 2006-07-14  Jakub Jelinek  <jakub@redhat.com>
 
        * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Fix cinfo.shift2 value.
index 7d5059e59159d813073be338c65142dc65b43f41..5e8bab485d1a9273200af8cd8f470082c7f45922 100644 (file)
@@ -11128,3 +11128,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);
+}
index 6e9a191fa7139c832b7f29e677c835709ee2cc77..8629a712f7540db2298dc6ccf6cf4c669bb83636 100644 (file)
@@ -142,6 +142,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