Commit graph

3 commits

Author SHA1 Message Date
Nick Clifton
54904469f7 Adjust linker tests that are sensitive to --rosegment 2024-06-13 17:00:29 +01:00
H.J. Lu
3c5e824b9c ELF: Add "#pass" to ld-elf/pr30508.d
Add "#pass" to ld-elf/pr30508.d to allow extra segments.

	PR binutils/30508
	* testsuite/ld-elf/pr30508.d: Add "#pass".
2023-06-05 09:32:12 -07:00
H.J. Lu
3f60b98298 ELF: Don't warn an empty PT_LOAD with the program headers
When rewriting the program headers, don't warn an empty PT_LOAD with the
program headers.

bfd/

	PR binutils/30508
	* elf.c (rewrite_elf_program_header): Don't warn if an empty
	PT_LOAD contains the program headers.

ld/

	PR binutils/30508
	* testsuite/ld-elf/pr30508.d: New file.
	* testsuite/ld-elf/pr30508.s: Likewise.
2023-06-05 08:21:21 -07:00