aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2023-12-08 15:15:50 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-12-22 14:20:18 +0800
commitc3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b (patch)
tree46b9a5155634c7e2122319f6adeba51d6ded0c03 /ld/testsuite/ld-elf
parent866a2ad35b75cbc60260c00b82bec2243877355f (diff)
downloadgdb-c3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b.zip
gdb-c3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b.tar.gz
gdb-c3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b.tar.bz2
LoongArch: Add support for the third expression of .align for R_LARCH_ALIGN
If the symbol index is not zero, the addend is used to represent the first and the third expressions of the .align. The lowest 8 bits are used to represent the first expression. Other bits are used to represent the third expression. The addend of R_LARCH_ALIGN for ".align 5, ,4" is 0x405. The addend of R_LARCH_ALIGN for ".balign 32, ,4" is 0x405.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/anno-sym.d2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/anno-sym.d b/ld/testsuite/ld-elf/anno-sym.d
index 9e53c4a..f1ce21f 100644
--- a/ld/testsuite/ld-elf/anno-sym.d
+++ b/ld/testsuite/ld-elf/anno-sym.d
@@ -3,3 +3,5 @@
#error_output: anno-sym.l
# The mips-irix6 target fails this test because it does not find any function symbols. Not sure why.
#skip: *-*-irix*
+# The .align generate a local symbol .Lla-relax-align.
+#skip: loongarch*-*-*