[all-commits] [llvm/llvm-project] e8fdbc: [orc-rt] Strip leading '_' in NativeDylibAPIs on D...
Lang Hames via All-commits
all-commits at lists.llvm.org
Wed Jun 10 22:09:35 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e8fdbcf7a318e54aef118574e73385e37f7b1520
https://github.com/llvm/llvm-project/commit/e8fdbcf7a318e54aef118574e73385e37f7b1520
Author: Lang Hames <lhames at gmail.com>
Date: 2026-06-11 (Thu, 11 Jun 2026)
Changed paths:
M orc-rt/lib/executor/Unix/NativeDylibAPIs.inc
M orc-rt/unittests/NativeDylibManagerSPSCITest.cpp
M orc-rt/unittests/NativeDylibManagerTest.cpp
Log Message:
-----------
[orc-rt] Strip leading '_' in NativeDylibAPIs on Darwin. (#203170)
NativeDylibAPIs::lookup takes linker-mangled names. On Darwin,
linker-mangling adds an '_' to the front of C symbol names. We need to
strip this off again before calling dlsym (which expects a C name).
Linker mangled names that don't start with an '_' are treated as
missing, since dlsym could never find an address for such a symbol.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list