Make inline plt reloc "unsupported for bss-plt" an error
authorAlan Modra <amodra@gmail.com>
Fri, 8 Feb 2019 01:21:34 +0000 (11:51 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 8 Feb 2019 11:02:40 +0000 (21:32 +1030)
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.

bfd/ChangeLog
bfd/elf32-ppc.c

index 9656c50febfb024f440cc04905861584059aca18..882dcea82ca27706e44eba826a6819368bb36a85 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-08  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
+       for bss-plt" warning to make it an error.
+
 2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ld/18841
index 10c04b997f93349fee8a8a8d7f0ec27e1ec536ef..593ef475926be71f0e277390be1d9809cfc30ddf 100644 (file)
@@ -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;
This page took 0.029842 seconds and 4 git commands to generate.