[all-commits] [llvm/llvm-project] 4d4134: [clang][ssaf] Fix plugin crash on AIX by adding `S...
Aviral Goel via All-commits
all-commits at lists.llvm.org
Wed Apr 15 11:17:13 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d41344c7995f213e176136cc27afc794a68b0f2
https://github.com/llvm/llvm-project/commit/4d41344c7995f213e176136cc27afc794a68b0f2
Author: Aviral Goel <aviralg at users.noreply.github.com>
Date: 2026-04-15 (Wed, 15 Apr 2026)
Changed paths:
M clang/tools/clang-ssaf-format/CMakeLists.txt
Log Message:
-----------
[clang][ssaf] Fix plugin crash on AIX by adding `SUPPORT_PLUGINS` to `clang-ssaf-format` (#192292)
This change fixes a crash when running the `with-plugin.test` lit tests
on AIX. The crash is caused by a missing `-Wl, -brtl` linker flag.
Without this flag, the dynamic linker cannot resolve symbols from the
host executable when loading shared libraries via `dlopen`. So when the
plugin's static initializer runs and tries to register into the
`llvm::Registry` (calling `getRegistryLinkListInstance` defined in the
host via `LLVM_INSTANTIATE_REGISTRY`), the symbol resolves to `null`,
crashing the process.
The fix is to use `SUPPORT_PLUGINS` flag in `add_llvm_executable`, like
other tools in llvm. For AIX, this flag adds `-Wl, -brtl` to enable
runtime linking; for Non-AIX platforms, it sets `LLVM_NO_DEAD_STRIP` to
prevent the linker from stripping symbols that plugins reference at load
time.
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