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: unassignedb...@nondot.org
          Reporter: jh7370.2...@my.bristol.ac.uk
                CC: alexander.v.shaposhni...@gmail.com,
                    jake.h.ehrl...@gmail.com,
                    jh7370.2...@my.bristol.ac.uk,
                    llvm-bugs@lists.llvm.org, ruppre...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to