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: 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

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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to