[binutils-gdb/binutils-2_32-branch] Make inline plt reloc "unsupported for bss-plt" an error

Alan Modra amodra@sourceware.org
Fri Feb 8 11:04:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=08e04c01fd752b8d71745803e625ffd3f7ddf0bb

commit 08e04c01fd752b8d71745803e625ffd3f7ddf0bb
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Feb 8 11:51:34 2019 +1030

    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.
    
    (cherry picked from commit 482f3505d1b62cbcf46ffed54807fad0d91c8f09)

Diff:
---
 bfd/ChangeLog   | 5 +++++
 bfd/elf32-ppc.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3faecb8..0973c6e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 10c04b9..593ef47 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;



More information about the Binutils-cvs mailing list