[lld] [ELF] Fix IRELATIVE addend if the resolver address is updated by linker relaxation (PR #179063)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 31 11:01:54 PST 2026
================
@@ -0,0 +1,53 @@
+# REQUIRES: loongarch
+# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax %s -o %t.o
+# RUN: ld.lld -pie %t.o -o %t
+# RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOC %s
+# RUN: llvm-readelf -s %t | FileCheck --check-prefix=SYM %s
+# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck --check-prefix=DIS %s
+
+## ifunc0 has a direct relocation, so it gets canonicalized to the IPLT entry.
+## ifunc1 has only a GOT relocation, so its symbols remains in the original section.
----------------
jrtc27 wrote:
```suggestion
## ifunc1 has only a GOT relocation, so its symbol remains in the original section.
```
https://github.com/llvm/llvm-project/pull/179063
More information about the llvm-commits
mailing list