]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Add -mignore-start-align option
authormengqinggang <mengqinggang@loongson.cn>
Sun, 7 Apr 2024 08:34:42 +0000 (16:34 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Sat, 20 Apr 2024 04:10:40 +0000 (12:10 +0800)
commit20eee7540b9f2615f7661393756fec0bb62a1495
tree4fab76b94a7d0a45034c7ef66d98ce14c845a99f
parent02fa4bbec1974df262f44e13023071f5ae4fc9b1
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.
gas/config/tc-loongarch.c
gas/testsuite/gas/loongarch/relax-align-ignore-start.d [moved from gas/testsuite/gas/loongarch/relax-align-first.d with 87% similarity]
gas/testsuite/gas/loongarch/relax-align-ignore-start.s [moved from gas/testsuite/gas/loongarch/relax-align-first.s with 100% similarity]
include/opcode/loongarch.h
ld/testsuite/ld-elf/dwarf.exp
ld/testsuite/ld-loongarch-elf/partial-link-align-a.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/partial-link-align-b.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-align-ignore-start.d [moved from ld/testsuite/ld-loongarch-elf/relax-align-first.d with 92% similarity]
ld/testsuite/ld-loongarch-elf/relax-align-ignore-start.s [moved from ld/testsuite/ld-loongarch-elf/relax-align-first.s with 100% similarity]
ld/testsuite/ld-loongarch-elf/relax.exp
ld/testsuite/ld-undefined/undefined.exp