From 15b552e9067184eb2c35afe5e01edb3c1c2bfd19 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 12 Jul 2005 12:03:57 +0000 Subject: [PATCH] * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub when !can_plt_call. --- bfd/ChangeLog | 5 +++++ bfd/elf64-ppc.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fdfc2e12e2..862540cfa6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-07-12 Alan Modra + + * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub + when !can_plt_call. + 2005-07-12 Alan Modra * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 402e859756..545fae8350 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,