[llvm] [BOLT] Support instrumentation hook via DT_FINI_ARRAY (PR #67348)

Vladislav Khmelevsky via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 03:12:47 PDT 2023


================
@@ -1276,6 +1280,57 @@ void RewriteInstance::discoverFileObjects() {
   registerFragments();
 }
 
+Error RewriteInstance::discoverFiniAddress() {
----------------
yota9 wrote:

Probably we should move this code and updateFiniReloc to InstrumentationRuntimeLibrary or even better to runtimeLibrary, since any of them might using this hack and it would be great to make it more universal, what do you think?

https://github.com/llvm/llvm-project/pull/67348


More information about the llvm-commits mailing list