From c3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b Mon Sep 17 00:00:00 2001 From: mengqinggang Date: Fri, 8 Dec 2023 15:15:50 +0800 Subject: 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. --- ld/testsuite/ld-elf/anno-sym.d | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/testsuite/ld-elf') 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*-*-* -- cgit v1.1