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
F137051635: D5541.id.diff
Fri, Nov 21, 1:33 AM
F137049078: D5541.id14050.diff
Fri, Nov 21, 1:24 AM
F137046768: D5541.id14083.diff
Fri, Nov 21, 1:17 AM
F137045575: D5541.diff
Fri, Nov 21, 1:13 AM
Unknown Object (File)
Wed, Nov 5, 3:46 AM
Unknown Object (File)
Mon, Nov 3, 12:44 AM
Unknown Object (File)
Sun, Nov 2, 2:47 AM
Unknown Object (File)
Thu, Oct 30, 10:59 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.