This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[ppc32] Make inline plt reloc "unsupported for bss-plt" an error
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 8 Feb 2019 21:31:13 +1030
- Subject: [ppc32] Make inline plt reloc "unsupported for bss-plt" an error
This was always supposed to be an error. Code emitted by gcc for
inline PLT calls assumes PLT is an array of addresses.
* elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
for bss-plt" warning to make it an error.
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 10c04b997f..593ef47592 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -8852,7 +8852,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
}
else if (htab->plt_type != PLT_NEW)
info->callbacks->einfo
- (_("%P: %H: %s relocation unsupported for bss-plt\n"),
+ (_("%X%P: %H: %s relocation unsupported for bss-plt\n"),
input_bfd, input_section, rel->r_offset,
howto->name);
break;
@@ -8870,7 +8870,7 @@ ppc_elf_relocate_section (bfd *output_bfd,
}
else if (htab->plt_type != PLT_NEW)
info->callbacks->einfo
- (_("%P: %H: %s relocation unsupported for bss-plt\n"),
+ (_("%X%P: %H: %s relocation unsupported for bss-plt\n"),
input_bfd, input_section, rel->r_offset,
howto->name);
break;
--
Alan Modra
Australia Development Lab, IBM