[llvm] [llvm] Indirect symbol replacement with GOTPCREL for aarch64 and risc… (PR #78003)

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 16:54:53 PDT 2024


ahmedbougacha wrote:

This "GOT-equivalent" pattern is already used extensively in at least swift (for relative metadata, the impetus for the original mach-o support).  So emitting the new relocations means we now generate code that current linkers don't support.
Can you look into something like gating this under some target linker check?  I imagine in clang proper we'd only see this in relative c++ vtables, which maybe isn't as stable so is okay to break?

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


More information about the llvm-commits mailing list