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: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected], [email protected],
                    [email protected],
                    [email protected], [email protected],
                    [email protected]

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

Reply via email to