]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: gas: Ignore .align if it is at the start of a section
authormengqinggang <mengqinggang@loongson.cn>
Tue, 19 Mar 2024 13:09:12 +0000 (21:09 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 1 Apr 2024 01:38:17 +0000 (09:38 +0800)
commit7918b183ec7844b7d54a2164a177898e2db59f2e
treeaaf4dc118d2d7b9a3ec74c4450e124aea753ae60
parent4dae2621e0ab112bb2d6764f34253de0f4a181d0
LoongArch: gas: Ignore .align if it is at the start of a section

Ignore .align if it is at the start of a section and the alignment
can be divided by the section alignment, the section alignment
can ensure this .align has a correct alignment.
gas/config/tc-loongarch.c
gas/testsuite/gas/loongarch/relax-align-first.d [new file with mode: 0644]
gas/testsuite/gas/loongarch/relax-align-first.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-align-first.d [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-align-first.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax.exp