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)
Wed, Oct 30, 8:17 AM
Unknown Object (File)
Sun, Oct 20, 5:45 AM
Unknown Object (File)
Wed, Oct 16, 2:38 PM
Unknown Object (File)
Sat, Oct 12, 6:49 AM
Unknown Object (File)
Oct 1 2024, 6:41 PM
Unknown Object (File)
Oct 1 2024, 12:28 AM
Unknown Object (File)
Sep 23 2024, 3:26 AM
Unknown Object (File)
Sep 16 2024, 10:23 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

Lint
Lint Skipped
Unit
Tests Skipped