Page MenuHomeFreeBSD

strip/objcopy: handle empty file as unknown
ClosedPublic

Authored by emaste on Oct 25 2021, 8:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 10 2024, 3:44 PM
Unknown Object (File)
Mar 7 2024, 8:41 PM
Unknown Object (File)
Mar 7 2024, 8:28 PM
Unknown Object (File)
Feb 19 2024, 9:25 PM
Unknown Object (File)
Feb 18 2024, 10:48 AM
Unknown Object (File)
Feb 16 2024, 9:58 AM
Unknown Object (File)
Jan 13 2024, 10:14 PM
Unknown Object (File)
Jan 1 2024, 8:18 PM
Subscribers

Details

Summary

Previously strip reported a somewhat cryptic strip: elf_begin() failed: Invalid argument for an empty file. Instead handle it as we do with an unknown file format.

LLVM reports error: 'file': The file was not recognized as a valid object file for both empty and unknown files. GNU strip produces no output for empty files.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable