Files
binutils-gdb/ld/testsuite
Jim Wilson c6261a00c3 RISC-V: Fix ld relax failure with calls and align directives.
Make _bfd_riscv_relax_call handle section alignment padding same as
the _bfd_riscv_relax_lui and _bfd_riscv_relax_pc functions already
do.  Use the max section alignment if section boundaries are crossed,
otherwise the alignment of the containing section.

	bfd/
	PR 25181
	* elfnn-riscv.c (_bfd_riscv_relax_call): Always add max_alignment to
	foff.  If sym_sec->output_section and sec->output_section are the same
	and not *ABS* then set max_alignment to that section's alignment.

	ld/
	PR 25181
	* testsuite/ld-riscv-elf/call-relax-0.s: New file.
	* testsuite/ld-riscv-elf/call-relax-1.s: New file.
	* testsuite/ld-riscv-elf/call-relax-2.s: New file.
	* testsuite/ld-riscv-elf/call-relax-3.s: New file.
	* testsuite/ld-riscv-elf/call-relax.d: New test.
	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run call-relax test.

Change-Id: Iaf65cee52345abf1955f36e8e72c4f6cc0db8d9a
2019-11-12 15:53:22 -08:00
..
2019-06-14 10:23:20 +09:30
2019-07-24 16:33:29 +03:00
2019-07-13 09:57:50 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-10-09 00:20:19 +10:30
2019-07-13 09:57:50 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-07-13 09:57:50 +09:30
2019-05-30 01:01:42 +09:30