Drop -Wl,-z,defs in shared builds of libunwind since during builds of ELF libraries, symbol resolution is incomplete.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Can you please write a more complete commit message explaining the need for this.
As an aside for the review itself, could you please enumerate what symbols are unresolved and why they are unresolved.
Comment Actions
The symbols/errors are:
the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) >>> referenced by libunwind.cpp: libunwind/src/CMakeFiles/unwind_shared.dir/libunwind.cpp.o:(typeinfo for libunwind::AbstractUnwindCursor) ld.lld: error: undefined symbol: vtable for __cxxabiv1::__si_class_type_info >>> referenced by libunwind.cpp: libunwind/src/CMakeFiles/unwind_shared.dir/libunwind.cpp.o:(typeinfo for libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_arm>)