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)
Mon, Sep 23, 3:26 AM
Unknown Object (File)
Mon, Sep 16, 10:23 PM
Unknown Object (File)
Wed, Sep 11, 4:42 PM
Unknown Object (File)
Wed, Sep 11, 3:46 PM
Unknown Object (File)
Sat, Sep 7, 9:54 AM
Unknown Object (File)
Sat, Sep 7, 4:07 AM
Unknown Object (File)
Wed, Sep 4, 4:35 PM
Unknown Object (File)
Aug 22 2024, 4:45 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