[llvm-bugs] [Bug 41268] New: Fail hard (or support) wildcard characters

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 27 17:36:03 PDT 2019


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

            Bug ID: 41268
           Summary: Fail hard (or support) wildcard characters
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objcopy/strip
          Assignee: unassignedbugs at nondot.org
          Reporter: rupprecht at google.com
                CC: alexander.v.shaposhnikov at gmail.com,
                    eleviant at accesssoftek.com, jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, ndesaulniers at google.com,
                    rupprecht at google.com

Several GNU objcopy/strip commands support glob-like syntax by default, such
as:
"strip --remove-section=.text.* --remove-section=!.text.foo". It seems the
characters supported are: *, !, ?, \, [, ].

My personal opinion is that the --regex flag we added to llvm-objcopy is better
than this and we shouldn't carry this legacy syntax forward, but one downside
we currently have is people using strip/objcopy may not notice these flags
aren't working -- e.g. "--remove-section=.text.*" will try to remove a section
literally called ".text.*" and end up not removing anything. Instead, we should
return an error to make it more visible that the user needs to use a different
syntax (regex instead of globs) and also pass --regex.

(Or, we could support globs, though I don't think anyone is in favor of that).

-- 
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/20190328/3944331b/attachment.html>


More information about the llvm-bugs mailing list