[llvm] [BOLT] Err when linking objects of different architectures (PR #66770)

Job Noorman via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 01:13:52 PDT 2023


mtvec wrote:

> The BOLT uses DT_FINI currently only, the DT_FINI_ARRAY tag is not even read right now. 

I was wondering if AArch64 doesn't use `DT_FINI` by default and you have to work around this in BOLT by forcing the linker to emit it through `-fini` or something similar. That's the case for RISC-V (it only use `DT_FINI_ARRAY` by default) so that's why I created the patch I talked about before. But maybe we should continue this discussion once I post that patch :)

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


More information about the llvm-commits mailing list