[examples][ORC] Make sure eh-frame registration code is linked into an example.
authorLang Hames <lhames@gmail.com>
Wed, 19 Oct 2022 21:58:57 +0000 (14:58 -0700)
committerLang Hames <lhames@gmail.com>
Wed, 19 Oct 2022 22:03:42 +0000 (15:03 -0700)
commitaf2b2214b4e2717d2114c0b01e3610e0b64a14be
tree3d82febe69f7ad4729ec95ee8b9494fe4abe622d
parent795f67934d38c2c080aa65f5244dcbdccdbd1154
[examples][ORC] Make sure eh-frame registration code is linked into an example.

Since aedeb8d5570, which switched to EPC-based eh-frame registration, the
eh-frame registration functions need to be forcibly linked into the target
process.

We need a general solution to this problem, but for now just force it in this
example to fix the test failures in
https://green.lab.llvm.org/green/job/clang-stage1-RA/31497

rdar://101083784
llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/LLJITWithThinLTOSummaries.cpp