[SPARC, COMMITTED 0/2] Fix emitting errors on invalid relocations

Jose E. Marchesi jose.marchesi@oracle.com
Tue Sep 4 18:49:00 GMT 2018


From: jose.marchesi@oracle.com

Hi people!

I just committed the following couple small patches related to issuing
of errors when reading in relocations.

The first patch concerns sparc64 targets, making BFD to emit an error
message when a relocation referring to an invalid symbol index is
read, like it is done in the generic ELF code.  There is no change in
semantics.  The binutils strip-14 test now passes in sparc64.

The second patch avoids emitting a duplicated error message when an
invalid relocation number is found.  This happened in sparc (32-bit)
targets.  The binutils strip-13 test now passes in sparc.

Salud!

Jose E. Marchesi (2):
  bfd, sparc: issue an error when reading relocations with invalid
    symbol references.
  bfd, sparc: avoid duplicated error messages on invalid relocations.

 bfd/ChangeLog     | 12 ++++++++++++
 bfd/elf64-sparc.c | 18 +++++++++++++-----
 bfd/elfxx-sparc.c |  2 --
 3 files changed, 25 insertions(+), 7 deletions(-)

-- 
2.11.0



More information about the Binutils mailing list