[llvm-bugs] [Bug 50393] New: [lld/mac] Binaries linked by ld64.lld can't be stripped
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 18 12:29:54 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50393
Bug ID: 50393
Summary: [lld/mac] Binaries linked by ld64.lld can't be
stripped
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: MachO
Assignee: unassignedbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: gkm at fb.com, jezreel at gmail.com,
llvm-bugs at lists.llvm.org, smeenai at fb.com
Repro (but just locally building FileCheck and using lld as host linker is
sufficient):
https://drive.google.com/file/d/1qsfA6J8qlkngpf_O4Qp7fHZeStSncg87/view?usp=sharing
% ld @response.txt
% ls -hl FileCheck
-rwxr-xr-x 1 thakis staff 1.9M May 18 15:29 FileCheck
% strip FileCheck
% ls -hl FileCheck
-rwxr-xr-x 1 thakis staff 1.2M May 18 15:29 FileCheck
% ../bin/ld64.lld @response.txt
% strip FileCheck 2>&1 | head
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip:
error: symbols referenced by indirect symbol table entries that can't be
stripped in: /Users/thakis/src/llvm-project/out/gn/repro_filecheck/FileCheck
__ZNK4llvm2cl4listIjbNS0_6parserIjEEE16printOptionValueEmb
__ZNSt3__127__tree_balance_after_insertIPNS_16__tree_node_baseIPvEEEEvT_S5_
__ZN4llvm2cl4listIjbNS0_6parserIjEEE19getExtraOptionNamesERNS_15SmallVectorImplINS_9StringRefEEE
--
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/20210518/be0a5914/attachment.html>
More information about the llvm-bugs
mailing list