K 10 svn:author V 6 emaste K 8 svn:date V 27 2021-11-08T14:04:24.753771Z K 7 svn:log V 685 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 (cherry picked from commit 179219ea046f46927d6478d43431e8b541703539) Git Hash: 2cd53619a1fcdb1283ca1b813ecf10ec9bdb5b0b Git Author: emaste@FreeBSD.org END