ELF: Don't warn an empty PT_LOAD with the program headers
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 2 Jun 2023 18:54:21 +0000 (11:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Jun 2023 15:21:21 +0000 (08:21 -0700)
commit3f60b98298fd77dec3a9182797c9dd6d7796bcaf
tree2f728ec231ede67c9fd4bd4d6e7acece00f64868
parentbaab375361c365afee2577c94cbbd3fdd443d6da
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.
bfd/elf.c
ld/testsuite/ld-elf/pr30508.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr30508.s [new file with mode: 0644]