[all-commits] [llvm/llvm-project] ca8d25: [clang-repl][Orc] Export executable symbols in Cla...

Kai Luo via All-commits all-commits at lists.llvm.org
Tue Sep 12 22:24:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca8d2533c79ccfbcb2de4090f0d48914a60b0a3d
      https://github.com/llvm/llvm-project/commit/ca8d2533c79ccfbcb2de4090f0d48914a60b0a3d
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M clang/unittests/Interpreter/ExceptionTests/CMakeLists.txt

  Log Message:
  -----------
  [clang-repl][Orc] Export executable symbols in ClangReplInterpreterExceptionTests

In Orc runtime, we use `dlopen(nullptr, ...)` to open current executable and use `dlsym` to find addresses of symbols, this requires `-rdynamic` flag.

As `llvm/CMakeLists.txt` suggests

```
# Make sure we don't get -rdynamic in every binary. For those that need it,
# use export_executable_symbols(target).
```
This patch exports symbols in `ClangReplInterpreterExceptionTests`. This also fixes `ClangReplInterpreterExceptionTests` is skipped on ppc64 when jitlink is used.

Reviewed By: v.g.vassilev

Differential Revision: https://reviews.llvm.org/D159167




More information about the All-commits mailing list