[llvm] [BOLT] Support runtime library hook via DT_INIT_ARRAY (PR #167467)
Ádám Kallai via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 24 07:03:57 PST 2025
================
@@ -5771,6 +5949,13 @@ Error RewriteInstance::readELFDynamic(ELFObjectFile<ELFT> *File) {
LLVM_DEBUG(dbgs() << "BOLT-DEBUG: Set start function address\n");
BC->StartFunctionAddress = Dyn.getPtr();
----------------
kaadam wrote:
Could we remove this line? If DT_INIT is available, the _StartFunctionAddress_ is set in _DiscoverRtInitAddress_ function.
https://github.com/llvm/llvm-project/pull/167467
More information about the llvm-commits
mailing list