[llvm-bugs] [Bug 41878] New: wasm-ld: --trace doesn't indicate where some symbols are referenced
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 14 15:12:02 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41878
Bug ID: 41878
Summary: wasm-ld: --trace doesn't indicate where some symbols
are referenced
Product: lld
Version: unspecified
Hardware: Other
OS: other
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: dan433584 at gmail.com
CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
sbc at chromium.org
While debugging https://github.com/CraneStation/wasi-sdk/issues/30, I had a
testcase that was linking in `__cxa_demangle`, and I wanted to know what was
pulling it in. The `--trace` option told me this:
/opt/wasi-sdk/share/sysroot/lib/wasm32-wasi/libc++abi.a: lazy definition of
__cxa_demangle
/opt/wasi-sdk/share/sysroot/lib/wasm32-wasi/libc++abi.a(cxa_demangle.cpp.o):
definition of __cxa_demangle
This doesn't actually indicate where the symbol is referenced from.
The answer turned out to be that it was referenced from
cxa_default_handlers.cpp.o in the same libc++abi.a file.
I can provide my lib++abi.a if that helps.
--
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/20190514/5b762371/attachment.html>
More information about the llvm-bugs
mailing list