aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-04-15 08:47:03 +0000
committerAlan Modra <amodra@gmail.com>2002-04-15 08:47:03 +0000
commit272423870a26d8a7cabfc48b10b6f2b8c365e7b5 (patch)
tree5a989ddf0c13e220afb178f5236ed93a4b156abc /bfd/elf32-ppc.c
parent2c7ef07446ed0423f2f4bdf25b3b890175f12e2b (diff)
downloadgdb-272423870a26d8a7cabfc48b10b6f2b8c365e7b5.zip
gdb-272423870a26d8a7cabfc48b10b6f2b8c365e7b5.tar.gz
gdb-272423870a26d8a7cabfc48b10b6f2b8c365e7b5.tar.bz2
* elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index be6cfab..9549d29 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -2542,7 +2542,8 @@ ppc_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
{
if (sym->st_shndx == SHN_COMMON
&& !info->relocateable
- && sym->st_size <= elf_gp_size (abfd))
+ && sym->st_size <= elf_gp_size (abfd)
+ && info->hash->creator->flavour == bfd_target_elf_flavour)
{
/* Common symbols less than or equal to -G nn bytes are automatically
put into .sdata. */