Open lhames opened 10 months ago
@llvm/issue-subscribers-orcjit
Author: None (lhames)
Commit b4e19155171e disabled the compiler-rt/test/orc/TestCases/Linux/ppc64/trivial-atexit.S
and compiler-rt/test/orc/TestCases/Linux/x86-64/trivial-atexit.S
tests due to this issue. Those tests should be re-enabled once this issue is fixed.
The current ELF atexit implementation in the ORC runtime (as of 7b83f69db4a) is:
But there's no reason to assume that
func
is in thePlatform
JITDylib, the common case is that it will not be (now that bothLLJIT
and thellvm-jitlink
tool place the ORC runtime code in a separate JITDylib from the "main" code by default).A better implementation would be:
but we'll need a JIT
dladdr
implementation before we can do that.