RISC-V: create new frag after alignment.
authorLifang Xia <lifang_xia@linux.alibaba.com>
Thu, 20 Jan 2022 02:42:55 +0000 (10:42 +0800)
committerLifang Xia <lifang_xia@c-sky.com>
Sat, 22 Jan 2022 09:20:18 +0000 (17:20 +0800)
commitcb2562f5530c2f2eb4ca70d70078fa600e3ba983
treec5f3b7aacee52d204f9762e22cec451e25b2936f
parent5b4ea8a74096bc7be5962667150798de21449dc9
RISC-V: create new frag after alignment.

PR 28793:

The alignment may be removed in linker. We need to create new frag after
alignment to prevent the assembler from computing static offsets.

gas/
* config/tc-riscv.c (riscv_frag_align_code): Create new frag.
gas/config/tc-riscv.c