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
..
2021-10-06 23:30:59 +02:00
2021-09-10 13:11:28 -07:00
2021-03-01 16:01:44 +01:00
2021-09-22 11:10:58 +02:00
2021-07-17 22:20:44 -07:00
2021-01-13 23:56:18 -06:00
2020-10-24 17:08:59 +00:00
2021-08-01 11:31:50 -06:00
2021-02-23 17:47:07 +00:00
2021-01-12 00:56:35 +02:00
2021-05-06 18:01:44 -07:00
2021-05-20 00:12:27 +03:00
2021-01-02 21:03:28 +02:00
2021-08-17 02:32:56 -07:00