x86-64: Allocate input section memory if needed
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Dec 2022 19:41:11 +0000 (11:41 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Dec 2022 19:46:30 +0000 (11:46 -0800)
commit9eb71a53bf36a370e21a6fbbb21e2726f64b0fd0
treeb1ca16b9c1eb2b3c7a3ef2b355cf76297e6ba3fa
parent767e2daed4da3245350d1e45e4eee42964d656f6
x86-64: Allocate input section memory if needed

When --no-keep-memory is used, the input section memory may not be cached.
Allocate input section memory for -z pack-relative-relocs if needed.

bfd/

PR ld/29939
* elfxx-x86.c (elf_x86_size_or_finish_relative_reloc): Allocate
input section memory if needed.

ld/

PR ld/29939
* testsuite/ld-elf/dt-relr-2i.d: New test.
bfd/elfxx-x86.c
ld/testsuite/ld-elf/dt-relr-2i.d [new file with mode: 0644]