[ORC][MachO] Fix JITDylib header-addr tracking in MachOPlatform.
HeaderAddr shouldn't be a member variable of MachOPlatformPlugin: there's only one plugin instance shared between all JITDylibs, so the shared HeaderAddr will be overwritten in an unpredictable and unsafe way. We haven't seen any issues due to this yet, but it triggered failures during testing of an upcoming llvm-jitlink patch (e.g. ORC-RT test Darwin/x86-64/jit-re-dlopen-trivial.S). This patch pre-fixes the issue in advance of the llvm-jitlink patch landing. This patch also removes some stale debugging output in MachOPlatform.
Loading
Please sign in to comment