[llvm-branch-commits] [RISCV] Replace @plt/@gotpcrel in data directives with %pltpcrel %gotpcrel (PR #132569)

Jessica Clarke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 25 23:11:20 PDT 2025


================
@@ -18,6 +18,6 @@
 .globl _start
 _start:
 .data
-  .word foo at PLT - .
-  .word foo at PLT - . + 1
-  .word foo at PLT - . - 1
+  .word %plt(foo - .)
----------------
jrtc27 wrote:

I've not looked at the implementation in detail, but thank you for taking the time to do so, I know from experience it can be quite painful getting the MC code to do things that weren't previously expected of it

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


More information about the llvm-branch-commits mailing list