diff options
author | Alan Modra <amodra@gmail.com> | 2018-08-24 00:15:35 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-08-24 00:23:27 +0930 |
commit | f53ad3cf2b2dc34114a9b74439da5a418ac40e3d (patch) | |
tree | 31f941b4317253d0bca590669c7f976e91f297a4 | |
parent | 14732552e70bcb0c85093c404a7091627eea4e38 (diff) | |
download | gdb-f53ad3cf2b2dc34114a9b74439da5a418ac40e3d.zip gdb-f53ad3cf2b2dc34114a9b74439da5a418ac40e3d.tar.gz gdb-f53ad3cf2b2dc34114a9b74439da5a418ac40e3d.tar.bz2 |
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.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 66eb071..97c8e08 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2018-08-23 Alan Modra <amodra@gmail.com> + + * elf64-ppc.c (ppc64_elf_relocate_section): Revise "call lacks + nop" error message. + 2018-08-23 Nick Clifton <nickc@redhat.com> * elf64-hppa.c (elf_hppa_final_link_relocate): Replace unworkable diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 1a40fa9..24855ed 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); |