[all-commits] [llvm/llvm-project] 437b4f: [ORC-RT][ORC][MachO] Refactor dlsym to extract a r...

lhames via All-commits all-commits at lists.llvm.org
Fri Dec 8 16:20:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 437b4f1c2e2478381073bd8ae82fdb556e51b10e
      https://github.com/llvm/llvm-project/commit/437b4f1c2e2478381073bd8ae82fdb556e51b10e
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-12-08 (Fri, 08 Dec 2023)

  Changed paths:
    M compiler-rt/lib/orc/macho_platform.cpp

  Log Message:
  -----------
  [ORC-RT][ORC][MachO] Refactor dlsym to extract a reusable bulk-lookup API.

MachOPlatformRuntimeState::lookupSymbols encapsulates the approach used in
dlsym in bb41fc682ee, but generalizes it to multiple symbols:
  1. try to resolve symbols locally
  2. issue a push-request for any unresolved symbols
  3. re-try local resolution

In the future lookupSymbols can serve as the basis for a public bulk lookup
API in the ORC runtime.




More information about the All-commits mailing list