[llvm-bugs] [Bug 49350] New: --set-section-flags without flags should clear most flags

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 25 06:41:00 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49350

            Bug ID: 49350
           Summary: --set-section-flags without flags should clear most
                    flags
           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

GNU objcopy --set-section-flags allows the flag list to be empty, e.g. "objcopy
in.o out.o --set-section-flags .foo=" is a valid command. The impact is to
clear all non-preserved section flags (note that this is different to
--rename-section without any flags which preserves all flags except
SHF_OS_NONCONFORMING). llvm-objcopy currently treats an empty flag list as
invalid, producing an error "unrecognized section flag ''". We should change it
to be more consistent with GNU objcopy here.

-- 
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/20210225/fb872363/attachment.html>


More information about the llvm-bugs mailing list