diff options
author | Nick Clifton <nickc@redhat.com> | 2006-07-18 08:56:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-07-18 08:56:44 +0000 |
commit | e0764319ebce80bbed2164c9317b3c4ec3c7df68 (patch) | |
tree | c5717836ba49445d28163f0b3fb43f5b05bc3ff9 | |
parent | 8c52373870f90604c3c3ec41e5e8222e0f7ade81 (diff) | |
download | gdb-e0764319ebce80bbed2164c9317b3c4ec3c7df68.zip gdb-e0764319ebce80bbed2164c9317b3c4ec3c7df68.tar.gz gdb-e0764319ebce80bbed2164c9317b3c4ec3c7df68.tar.bz2 |
* 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.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 8 | ||||
-rw-r--r-- | bfd/elfxx-mips.h | 3 |
3 files changed, 18 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 07bf4c4..6c4773e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 7d5059e..5e8bab4 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -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); +} diff --git a/bfd/elfxx-mips.h b/bfd/elfxx-mips.h index 6e9a191..8629a71 100644 --- a/bfd/elfxx-mips.h +++ b/bfd/elfxx-mips.h @@ -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 |