================ @@ -18,6 +18,6 @@ .globl _start _start: .data - .word foo@PLT - . - .word foo@PLT - . + 1 - .word foo@PLT - . - 1 + .word %plt(foo - .) ---------------- lenary wrote:
Yeah I don't like `%plt(foo - .)`, because the thing being put into the instruction is really the difference between foo's PLT entry's address, and the current address (rather than a PLT entry for the difference between foo and the current address). I would much prefer `%pltpcrel(foo)` if `%plt(foo)-.` is not a direction you are happy with, given the existing `%gotpcrel(foo)` means the difference between the current address and foo's GOT entry's address. https://github.com/llvm/llvm-project/pull/132569 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits