aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-07-18 08:56:44 +0000
committerNick Clifton <nickc@redhat.com>2006-07-18 08:56:44 +0000
commite0764319ebce80bbed2164c9317b3c4ec3c7df68 (patch)
treec5717836ba49445d28163f0b3fb43f5b05bc3ff9 /bfd/elfxx-mips.c
parent8c52373870f90604c3c3ec41e5e8222e0f7ade81 (diff)
downloadgdb-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.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c8
1 files changed, 8 insertions, 0 deletions
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);
+}