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: unassignedb...@nondot.org
          Reporter: dan433...@gmail.com
                CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org,
                    s...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to