https://bugs.llvm.org/show_bug.cgi?id=45271
Bug ID: 45271
Summary: When suffixed with a version, llvm-strip is no longer
recognized as llvm-strip
Product: tools
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedb...@nondot.org
Reporter: natechancel...@gmail.com
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
Debian's apt.llvm.org symlinks all of the LLVM binaries from
/usr/lib/llvm-<num>/bin to /usr/bin/<tool_name>-<num> (e.g.
/usr/lib/llvm-11/bin/clang -> /usr/bin/clang-11) so that multiple versions of
clang can be installed and used at one time without stepping over each other.
After commit c54959c00d0 ("Introduce llvm-install-name-tool"), llvm-strip fails
to work in this configuration (as initially reported at
https://github.com/ClangBuiltLinux/linux/issues/940):
llvm-strip-11: error: unknown argument '-o'
This is because 'strip' is required to be the ending to the binary after this
change, whereas before the binary merely needed to contain 'strip'. I am not
familiar enough with LLVM data structures to try and fix this myself, hence
this report (maybe moving back to using sys::path::stem(...).contains(...)?).
Should you need to reproduce:
```
$ ln -s llvm-strip llvm-strip-11
$ echo | ./clang -c -x c - -o test.o
$ ./llvm-strip-11 -o test-stripped.o test.o
```
--
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