summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-05-24 00:27:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-05-24 00:27:58 +0000
commit56eba458172eb66b709f34c698fbdb961de45d5f (patch)
treecde4c51600818a061cc6cd6eefa807888c5313c7
parent10a2f9ae921564e1e59c2c96f1403a06b90031ac (diff)
downloadbinutils-redhat-56eba458172eb66b709f34c698fbdb961de45d5f.tar.gz
* emultempl/ppc32elf.em (after_allocation): Don't call
ppc_elf_set_sdata_syms when relocatable.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/ppc32elf.em5
2 files changed, 8 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index ed4523dfae..5087441b76 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/emultempl/ppc32elf.em b/ld/emultempl/ppc32elf.em
index cb27161f71..7b180bb37c 100644
--- a/ld/emultempl/ppc32elf.em
+++ b/ld/emultempl/ppc32elf.em
@@ -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");