binutils-gdb/ld/testsuite/ld-elf/anno-sym.d
mengqinggang c3d507aba3 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.
2023-12-22 14:20:18 +08:00

7 lines
358 B
Makefile

# Check that linking anno-sym.o produces an undefined reference message referring to '_start' and not 'annobin_hello.c'
#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*
# The .align generate a local symbol .Lla-relax-align.
#skip: loongarch*-*-*