<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Fail hard (or support) wildcard characters"
href="https://bugs.llvm.org/show_bug.cgi?id=41268">41268</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fail hard (or support) wildcard characters
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>llvm-objcopy/strip
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rupprecht@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>alexander.v.shaposhnikov@gmail.com, eleviant@accesssoftek.com, jake.h.ehrlich@gmail.com, jh7370.2008@my.bristol.ac.uk, llvm-bugs@lists.llvm.org, ndesaulniers@google.com, rupprecht@google.com
</td>
</tr></table>
<p>
<div>
<pre>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).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>