[PATCH v2] elf/riscv: Fix relaxation with aliases [PR28021]

Andreas Schwab schwab@linux-m68k.org
Mon Jul 5 16:27:10 GMT 2021


On Jul 05 2021, Michael Matz wrote:

> diff --git a/ld/testsuite/ld-riscv-elf/relax-twice-1.s b/ld/testsuite/ld-riscv-elf/relax-twice-1.s
> new file mode 100644
> index 00000000000..0e3b079d64e
> --- /dev/null
> +++ b/ld/testsuite/ld-riscv-elf/relax-twice-1.s
> @@ -0,0 +1,15 @@
> +	.file	"<artificial>"
> +	.option pic
> +	.text
> +	# this align is here so that the .text section starts at 0x1000,
> +	# in order to make matching of testcase results easier
> +	.align 12

Is the alignment still needed?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Binutils mailing list