[llvm-bugs] [Bug 41305] New: --rename-section flags should be case insensitive

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 29 08:44:04 PDT 2019


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

            Bug ID: 41305
           Summary: --rename-section flags should be case insensitive
           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 accepts section flags with upper or lower case:

C:\Work\TempWork> objcopy --rename-section=.text=.foo,CONTENTS bar.o bar2.o
is equivalent to
C:\Work\TempWork> objcopy --rename-section=.text=.foo,CoNTenTs bar.o bar2.o
and
C:\Work\TempWork> objcopy --rename-section=.text=.foo,contents bar.o bar2.o

llvm-objcopy only accepts lower-case:
C:\Work\TempWork> llvm-objcopy --rename-section=.text=.foo,CONTENTS bar.o
bar2.o
llvm-objcopy.exe: error: Unrecognized section flag 'CONTENTS'. Flags supported
for GNU compatibility: alloc, load, noload, readonly, debug, code, data, rom,
share, contents, merge, strings

For compatibility we need this behaviour.

-- 
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/20190329/278b5bf5/attachment-0001.html>


More information about the llvm-bugs mailing list