diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-12-08 15:15:50 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-12-22 14:20:18 +0800 |
commit | c3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b (patch) | |
tree | 46b9a5155634c7e2122319f6adeba51d6ded0c03 /ld/testsuite/ld-loongarch-elf/anno-sym.d | |
parent | 866a2ad35b75cbc60260c00b82bec2243877355f (diff) | |
download | gdb-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-loongarch-elf/anno-sym.d')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/anno-sym.d | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/anno-sym.d b/ld/testsuite/ld-loongarch-elf/anno-sym.d new file mode 100644 index 0000000..a58f4a6 --- /dev/null +++ b/ld/testsuite/ld-loongarch-elf/anno-sym.d @@ -0,0 +1,7 @@ +# Copied from ld-elf, add -mno-relax to prevent generate .Lla-relax-align symbol +# Check that linking anno-sym.o produces an undefined reference message referring to '_start' and not 'annobin_hello.c' +#as: -mno-relax +#ld: -e _start +#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* |