Page MenuHomeFreeBSD

strip/objcopy: handle empty file as unknown
ClosedPublic

Authored by emaste on Oct 25 2021, 8:10 PM.
Tags
None
Referenced Files
F101955356: D32648.diff
Tue, Nov 5, 6:51 PM
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
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