[all-commits] [llvm/llvm-project] adbc7a: [llvm-jitlink] Don't add process symbols to every ...
lhames via All-commits
all-commits at lists.llvm.org
Mon Feb 7 21:29:28 PST 2022
Author: Lang Hames <lhames at gmail.com>
Date: 2022-02-08 (Tue, 08 Feb 2022)
[llvm-jitlink] Don't add process symbols to every JITDylib.
The addProcessSymbols function added a generator for process symbols to every
JITDylib in the session, but this is unhelpful default behavior (e.g. it will
cause the ORC runtime's definition of __cxa_atexit to be shadowed by the
process's definition for all JITDylibs except main).
Since the loadProcessSymbols function already added a generator to main we only
need to drop this function. Other JITDylibs wishing to resolve process symbols
can link against the main JITDylib by passing `-lmain`.
More information about the All-commits