Page MenuHomeFreeBSD

elfcopy: fail if debug link target is empty
ClosedPublic

Authored by emaste on Mar 3 2016, 11:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 2, 11:47 AM
Unknown Object (File)
Mon, Mar 10, 11:23 AM
Unknown Object (File)
Mon, Mar 10, 9:56 AM
Unknown Object (File)
Jan 31 2025, 6:54 AM
Unknown Object (File)
Jan 21 2025, 2:58 AM
Unknown Object (File)
Jan 20 2025, 12:03 AM
Unknown Object (File)
Jan 15 2025, 12:35 PM
Unknown Object (File)
Jan 4 2025, 11:22 AM
Subscribers

Details

Summary

An empty debug link target previously returned a confusing and incorrect error like "objcopy: fread failed: No error: 0".

GNU objcopy allows an empty file as the debug link target. However, that case is nonsensical so just return an explicit error.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste retitled this revision from to elfcopy: fail if debug link target is empty.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: bdrewery.
emaste added a subscriber: imp.
bdrewery edited edge metadata.
This revision is now accepted and ready to land.Mar 4 2016, 5:52 PM
This revision was automatically updated to reflect the committed changes.