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.
Paths
| Differential D5541 Authored by emaste on Mar 3 2016, 11:21 PM.
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
Event Timelineemaste updated this object. bdrewery edited edge metadata. This revision is now accepted and ready to land.Mar 4 2016, 5:52 PM2016-03-04 17:52:06 (UTC+0) Closed by commit rS296391: elfcopy: fail if debug link target is empty (authored by emaste). · Explain WhyMar 4 2016, 6:28 PM2016-03-04 18:28:42 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 14083 head/contrib/elftoolchain/elfcopy/sections.c
|