[PATCH] D76562: [llvm-objcopy] Recognize llvm-strip-$major as a tool name

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 14:11:21 PDT 2020


MaskRay added a subscriber: hans.
MaskRay added a comment.

@hans If it is not too late for LLVM 10.0.0, I hope this can be picked. If it is too late, I hope it can be included in 10.0.1 ...

Debian and some other distributions will ship /usr/bin/llvm-strip-10 but not /usr/bin/llvm-strip (https://packages.debian.org/bullseye/amd64/llvm-9/filelist). Without this patch, /usr/bin/llvm-strip-10 will think it is objcopy.

llvm-{objcopy,strip,install-name-tool} is a crunched executable. `llvm-strip-10 a.o` (implicit --strip-all) and `llvm-objcopy-10 a.o` (almost a no-op) are different...
`llvm-strip a.o -o b.o` is good but `llvm-objcopy-10 a.o -o b.o` would error.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76562/new/

https://reviews.llvm.org/D76562





More information about the llvm-commits mailing list