From: amodra Date: Mon, 15 Apr 2002 08:47:02 +0000 (+0000) Subject: * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2107e1613de8258b6e4d60ee16395afc62245612;p=pf3gnuchains%2Fpf3gnuchains3x.git * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3b738183db..ca862e3a1e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-04-15 Alan Modra + + * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. + 2002-04-12 Michael Snyder * bfd-in.h (bfd_get_section_lma): New access macro. diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index be6cfabb19..9549d29367 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. */