binutils-gdb/ld/testsuite/ld-loongarch-elf/anno-sym.s
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

13 lines
178 B
ArmAsm

.text
.hidden .annobin_hello.c
.type .annobin_hello.c, STT_NOTYPE
.equiv .annobin_hello.c, .
.size .annobin_hello.c, 0
.global _start
_start:
.nop
.align 4
.dc.a foo