[PATCH] D55997: Add support for LLVM profile for NetBSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 21 04:36:38 PST 2018
krytarowski added a comment.
@joerg I was trying to change atexit(3) calls to C++ destructors or GCC destructiors (`__attribute__((destructor))`), but none of that worked.
For the former:
/public/llvm-build/lib/clang/8.0.0/lib/netbsd/libclang_rt.profile-x86_64.a(InstrProfilingRuntime.cc.o): In function `__clang_call_terminate':
InstrProfilingRuntime.cc:(.text.__clang_call_terminate[__clang_call_terminate]+0x2): undefined reference to `__cxa_begin_catch'
InstrProfilingRuntime.cc:(.text.__clang_call_terminate[__clang_call_terminate]+0x7): undefined reference to `std::terminate()'
/public/llvm-build/lib/clang/8.0.0/lib/netbsd/libclang_rt.profile-x86_64.a(InstrProfilingRuntime.cc.o):(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
For the latter hangs and crashes of many/all tests.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55997/new/
https://reviews.llvm.org/D55997
More information about the llvm-commits
mailing list