This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PowerPC64 "call lacks nop"
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 24 Aug 2018 00:25:01 +0930
- Subject: PowerPC64 "call lacks nop"
The "-fPIC" and "-mcmodel=small" parts of these messages isn't always
true, so lets dispense with that and just report the type of stub
causing trouble.
* elf64-ppc.c (ppc64_elf_relocate_section): Revise "call lacks
nop" error message.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 1a40fa9673..24855ed514 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -13995,13 +13995,13 @@ ppc64_elf_relocate_section (bfd *output_bfd,
info->callbacks->einfo
/* xgettext:c-format */
(_("%H: call to `%pT' lacks nop, can't restore toc; "
- "recompile with -fPIC\n"),
+ "(plt call stub)\n"),
input_bfd, input_section, rel->r_offset, sym_name);
else
info->callbacks->einfo
/* xgettext:c-format */
(_("%H: call to `%pT' lacks nop, can't restore toc; "
- "(-mcmodel=small toc adjust stub)\n"),
+ "(toc save/adjust stub)\n"),
input_bfd, input_section, rel->r_offset, sym_name);
bfd_set_error (bfd_error_bad_value);
--
Alan Modra
Australia Development Lab, IBM