summaryrefslogtreecommitdiffstats
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-05-24 00:27:58 +0000
committerAlan Modra <amodra@gmail.com>2005-05-24 00:27:58 +0000
commit61f8ebf259b548caf1d2b5a2fde4fc4cf3c456f9 (patch)
treef4ab810caa0e8f050810bba3fa9144ced91992b4 /ld/emultempl
parent968c98a2521076fe0cb86b7f10fbb4e8c50dfebf (diff)
downloadppe42-binutils-61f8ebf259b548caf1d2b5a2fde4fc4cf3c456f9.tar.gz
ppe42-binutils-61f8ebf259b548caf1d2b5a2fde4fc4cf3c456f9.zip
* emultempl/ppc32elf.em (after_allocation): Don't call
ppc_elf_set_sdata_syms when relocatable.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc32elf.em5
1 files changed, 3 insertions, 2 deletions
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");
OpenPOWER on IntegriCloud