https://bugs.llvm.org/show_bug.cgi?id=50657
Bug ID: 50657
Summary: `llvm-strip -x` crashes on binary linked by lld/mac,
works fine on binary linked by ld64
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 file:
https://drive.google.com/file/d/1CIQmMM4l58h8oCkia3tFN1WKhlFr6zWR/view?usp=sharing
(< 10MB, ~30MB unzipped)
Link with ld64.lld, then:
% ~/src/llvm-project/out/gn/bin/llvm-strip -x protoc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0. Program arguments: /Users/thakis/src/llvm-project/out/gn/bin/llvm-strip
-x protoc
zsh: segmentation fault ~/src/llvm-project/out/gn/bin/llvm-strip -x protoc
Works fine when linking with ld64.
Even though it's llvm-strip that's crashing, I think this is an lld bug. It
works when linking with ld64, and cctools's strip is confused by lld's output
too (bug 50393).
--
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