diff options
author | Alan Modra <amodra@gmail.com> | 2002-04-15 08:47:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-04-15 08:47:03 +0000 |
commit | 272423870a26d8a7cabfc48b10b6f2b8c365e7b5 (patch) | |
tree | 5a989ddf0c13e220afb178f5236ed93a4b156abc | |
parent | 2c7ef07446ed0423f2f4bdf25b3b890175f12e2b (diff) | |
download | gdb-272423870a26d8a7cabfc48b10b6f2b8c365e7b5.zip gdb-272423870a26d8a7cabfc48b10b6f2b8c365e7b5.tar.gz gdb-272423870a26d8a7cabfc48b10b6f2b8c365e7b5.tar.bz2 |
* elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf32-ppc.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3b73818..ca862e3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-04-15 Alan Modra <alan@weed.local> + + * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. + 2002-04-12 Michael Snyder <msnyder@redhat.com> * bfd-in.h (bfd_get_section_lma): New access macro. 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. */ |