* emultempl/ppc32elf.em (after_allocation): Don't call
authorAlan Modra <amodra@gmail.com>
Tue, 24 May 2005 00:27:58 +0000 (00:27 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 24 May 2005 00:27:58 +0000 (00:27 +0000)
ppc_elf_set_sdata_syms when relocatable.

ld/ChangeLog
ld/emultempl/ppc32elf.em

index ed4523dfaee09f8a48850d9ce8c078ddcb94b7eb..5087441b76b2ec8e4b0e2b8ec97d39d2215f9067 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc32elf.em (after_allocation): Don't call
+       ppc_elf_set_sdata_syms when relocatable.
+
 2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        * Makefile.am (ld.1): Revert the last 2 changes.
index cb27161f7171a52bfbe53f2d7f09f33d12cc7315..7b180bb37c043aedfb76f3a945784c7fede9e869 100644 (file)
@@ -113,8 +113,9 @@ ppc_before_allocation (void)
 static void
 gld${EMULATION_NAME}_after_allocation (void)
 {
-  if (link_info.hash->creator == &bfd_elf32_powerpc_vec
-      || link_info.hash->creator == &bfd_elf32_powerpcle_vec)
+  if ((link_info.hash->creator == &bfd_elf32_powerpc_vec
+       || link_info.hash->creator == &bfd_elf32_powerpcle_vec)
+      && !link_info.relocatable)
     {
       if (!ppc_elf_set_sdata_syms (output_bfd, &link_info))
        einfo ("%X%P: cannot set sdata syms %E\n");