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)
Thu, Jan 9, 5:43 PM
Unknown Object (File)
Nov 30 2024, 3:38 AM
Unknown Object (File)
Nov 27 2024, 3:52 AM
Unknown Object (File)
Nov 27 2024, 3:47 AM
Unknown Object (File)
Nov 27 2024, 3:34 AM
Unknown Object (File)
Nov 18 2024, 10:10 PM
Unknown Object (File)
Nov 18 2024, 9:23 PM
Unknown Object (File)
Nov 5 2024, 6:51 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