bfd, sparc: avoid duplicated error messages on invalid relocations.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 4 Sep 2018 18:19:06 +0000 (20:19 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 4 Sep 2018 18:31:41 +0000 (20:31 +0200)
commite920c014ecd9fbb630c76576d2771aa4631d93f7
treeccb138b08d6baf5d7fe7669025493e2f7b376bf8
parent8410d65b77164d020a45cc9aa17a0147dc76862d
bfd, sparc: avoid duplicated error messages on invalid relocations.

This patch avoids a duplicated error message when an invalid
relocation number is read from an object file in sparc-* ELF targets:

$ strip -g test.o
strip: test.o: unsupported relocation type 0xd7
strip: test.o: unsupported relocation type 0xd7
strip: test.o: bad value

Tested in x86_64-linux-gnu, sparc64-linux-gnu and sparc-linux-gnu
targets.

bfd/ChangeLog:

2018-09-04  Jose E. Marchesi  <jose.marchesi@oracle.com>

* elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Do not issue an
error when an invalid relocation is passed;  this is already done
by `_bfd_sparc_elf_info_to_howto_ptr'.
bfd/ChangeLog
bfd/elfxx-sparc.c
This page took 0.025079 seconds and 4 git commands to generate.