freebsd-skq/contrib/elftoolchain/elfcopy
markj b6697ced84 elfcopy: Clear errors after fetching the shstrtab index.
Otherwise a future call to elf_errno() will return a non-zero value.
update_shdr(), for example, treats any errors associated with the ELF
descriptor as fatal.  Clear the error per the first example in
elf_errmsg.3.

Convert to elf_getshdrstrndx() while here since elf_getshstrndx() is
apparently deprecated.

Reported by:	royger
Reviewed by:	emaste
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D20852
2019-07-04 15:07:19 +00:00
..
archive.c Update to ELF Tool Chain r3490 2016-08-31 15:05:04 +00:00
ascii.c elfcopy: Use libelftc's string table routines to build .shstrtab. 2019-06-04 18:34:05 +00:00
binary.c elfcopy: Use libelftc's string table routines to build .shstrtab. 2019-06-04 18:34:05 +00:00
elfcopy.1 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elfcopy.h elfcopy: Use libelftc's string table routines to build .shstrtab. 2019-06-04 18:34:05 +00:00
main.c elfcopy: Use libelftc's string table routines to build .shstrtab. 2019-06-04 18:34:05 +00:00
Makefile Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
mcs.1 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
os.FreeBSD.mk Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
pe.c Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
sections.c elfcopy: Clear errors after fetching the shstrtab index. 2019-07-04 15:07:19 +00:00
segments.c Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
strip.1 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
symbols.c Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00