* elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
authorAlan Modra <amodra@gmail.com>
Mon, 15 Apr 2002 08:47:03 +0000 (08:47 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 15 Apr 2002 08:47:03 +0000 (08:47 +0000)
bfd/ChangeLog
bfd/elf32-ppc.c

index 3b738183dbc19ae09f110a5f8a66f9b8dce40156..ca862e3a1e880f05dbc8c049129a414266aab637 100644 (file)
@@ -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.
index be6cfabb19508943553f0f2530ddef5af6582b20..9549d29367e9847b2e264ede75c0777d635a4938 100644 (file)
@@ -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.  */
This page took 0.029342 seconds and 4 git commands to generate.