binutils-gdb/ld/testsuite/ld-loongarch-elf/relax-align-ignore-start.d
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

16 lines
358 B
D

#as: -mignore-start-align
#ld: -e0
#objdump: -d
.*:[ ]+file format .*
Disassembly of section aaa:
0000000120000078 <aaa>:
[ ]+120000078:[ ]+4c000020[ ]+ret
Disassembly of section bbb:
0000000120000080 <bbb>:
[ ]+120000080:[ ]+4c000020[ ]+ret
Disassembly of section ccc:
0000000120000090 <__bss_start-0x4004>:
[ ]+120000090:[ ]+4c000020[ ]+ret