freebsd-src/contrib/elftoolchain/elfcopy
Ed Maste 179219ea04 strip/objcopy: handle empty file as unknown
Previously strip reported a somewhat cryptic error for empty files:

    strip: elf_begin() failed: Invalid argument

Add a special case to treat empty files as with an unknown file format.
This is consistent with llvm-strip.  GNU strip produces no output which
does not seem like useful behaviour (but it does exit with status 1).

Reported by:	andrew
Reviewed by:	markj
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32648
2021-10-25 17:28:41 -04:00
..
archive.c elftoolchain: stop leaving tempfiles on error 2021-03-04 12:24:07 +00:00
ascii.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
binary.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elfcopy.1 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elfcopy.h elftoolchain: stop leaving tempfiles on error 2021-03-04 12:24:07 +00:00
main.c strip/objcopy: handle empty file as unknown 2021-10-25 17:28:41 -04:00
Makefile
mcs.1 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
os.FreeBSD.mk
pe.c
sections.c objcopy: add new sections also when there is no .shstrtab 2020-03-20 15:50:37 +00:00
segments.c Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
strip.1 Merge r3778 and r3779 from ELFToolchain. 2019-07-29 22:07:43 +00:00
symbols.c