Functions in static code that should be callable from JITed code must be exported. For dynamic libraries extern functions are exported by default. For exectuables, linkers usually strip them away unless we explicitly ask for keeping them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Issue reported during review D110260. With this fix, nm should return something like this now:
➜ nm bin/LLJITWithExecutorProcessControl | grep return1 0000000100004c10 T _return1
Comment Actions
FYI Included one more typo fix in ExecutorAddress.h (Edit: This was in the other review.)