binutils-gdb/ld/testsuite/ld-loongarch-elf/relax-align-ignore-start.s
mengqinggang 20eee7540b LoongArch: Add -mignore-start-align option
Ignore .align at the start of a section may result in misalignment when
partial linking. Manually add -mignore-start-align option without partial
linking.

Gcc -falign-functions add .align 5 to the start of a section, it causes some
error message mismatch. Set these testcases to xfail on LoongArch target.
2024-04-20 12:10:40 +08:00

13 lines
261 B
ArmAsm

# If .align at the start of a section, do not add NOP instructions
# and do not emit R_LARCH_ALIGN relocations.
# Section alignment can ensure correct alignment.
.section "aaa", "ax"
ret
.section "bbb", "ax"
.align 3
ret
.section "ccc", "ax"
.align 4, ,4
ret