[llvm-bugs] [Bug 44283] New: --dump-section run at wrong time
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 12 01:45:19 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44283
Bug ID: 44283
Summary: --dump-section run at wrong time
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: alexander.v.shaposhnikov at gmail.com,
jake.h.ehrlich at gmail.com,
jh7370.2008 at my.bristol.ac.uk,
llvm-bugs at lists.llvm.org, rupprecht at google.com
llvm-objcopy --dump-section is run after removing and adding of sections. This
is incorrect, since GNU objcopy runs it before. The GNU behaviour also
intuitively makes sense to me: to "extract" a section (i.e. dump and remove),
it should be one operation. However, llvm-objcopy does not allow this: if an
attempt is made to dump a section in the same invocation as it is removed,
llvm-objcopy emits an error saying the section can't be found.
Similarly, dumping a newly added section should not be allowed to match GNU
(i.e. --dump-section .data=data.txt --add-section .data=from.txt should emit an
error).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191212/b97c8290/attachment.html>
More information about the llvm-bugs
mailing list