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: unassignedb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: g...@fb.com, jezr...@gmail.com,
                    llvm-bugs@lists.llvm.org, smee...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to