[llvm] [BOLT] Support runtime library hook via DT_INIT_ARRAY (PR #167467)
Ádám Kallai via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 00:50:35 PST 2025
================
@@ -4849,9 +5016,13 @@ void RewriteInstance::patchELFSectionHeaderTable(ELFObjectFile<ELFT> *File) {
ELFEhdrTy NewEhdr = Obj.getHeader();
if (BC->HasRelocations) {
- if (RuntimeLibrary *RtLibrary = BC->getRuntimeLibrary())
+ RuntimeLibrary *RtLibrary = BC->getRuntimeLibrary();
+ if (RtLibrary && opts::RuntimeLibInitHook == opts::RLIH_ENTRY_POINT) {
----------------
kaadam wrote:
Yes, that's good for me. Thanks.
https://github.com/llvm/llvm-project/pull/167467
More information about the llvm-commits
mailing list