[llvm] [BOLT][runtime] Add start & fini symbols (PR #68505)
Vladislav Khmelevsky via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 9 14:33:44 PDT 2023
================
@@ -4568,6 +4568,26 @@ void RewriteInstance::updateELFSymbolTable(
}
}
+ // Add runtime library start and fini address symbols
+ if (RuntimeLibrary *RtLibrary = BC->getRuntimeLibrary()) {
+ auto AddSymbol = [&](StringRef Name, uint64_t Address) {
----------------
yota9 wrote:
Although I can pass the address as second argument. Probably would do it like so. And weak or local - I don't really think it does matter
https://github.com/llvm/llvm-project/pull/68505
More information about the llvm-commits
mailing list