summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-07-12 12:03:57 +0000
committerAlan Modra <amodra@gmail.com>2005-07-12 12:03:57 +0000
commit15b552e9067184eb2c35afe5e01edb3c1c2bfd19 (patch)
treef16b4b859fac6606a6d77385697bcaa7b3ef83c2 /bfd
parent70961b9d70422aa56de88dd58a1aad313612a28c (diff)
downloadbinutils-15b552e9067184eb2c35afe5e01edb3c1c2bfd19.tar.gz
binutils-15b552e9067184eb2c35afe5e01edb3c1c2bfd19.tar.bz2
binutils-15b552e9067184eb2c35afe5e01edb3c1c2bfd19.zip
* elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
when !can_plt_call.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-ppc.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fdfc2e12e28..862540cfa67 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2005-07-12 Alan Modra <amodra@bigpond.net.au>
+ * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
+ when !can_plt_call.
+
+2005-07-12 Alan Modra <amodra@bigpond.net.au>
+
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
2005-07-12 Alan Modra <amodra@bigpond.net.au>
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 402e859756f..545fae83503 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -9998,6 +9998,8 @@ ppc64_elf_relocate_section (bfd *output_bfd,
br = bfd_get_32 (input_bfd, contents + rel->r_offset);
if ((br & 1) == 0)
can_plt_call = TRUE;
+ else
+ stub_entry = NULL;
}
else if (h != NULL
&& strcmp (h->elf.root.root.string,