elf: Reset alignment for each PT_LOAD segment
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 1 Aug 2022 23:02:39 +0000 (16:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Aug 2022 20:34:01 +0000 (13:34 -0700)
commit59f214544c50ec7ebbca285ff2b4949f48671690
tree4645337eb1c67bb185be11a0d0d59f8a63e0fa5a
parent88c4cce8d28e6be486cb25fbbccf2b42e40da45b
elf: Reset alignment for each PT_LOAD segment

Reset alignment for each PT_LOAD segment to avoid using alignment from
the previous PT_LOAD segment.

bfd/

PR ld/29435
* elf.c (assign_file_positions_for_load_sections): Reset
alignment for each PT_LOAD segment.

ld/

PR ld/29435
* testsuite/ld-elf/pr29435.d: New file.
* testsuite/ld-elf/pr29435.s: Likewise.
bfd/elf.c
ld/testsuite/ld-elf/pr29435.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr29435.s [new file with mode: 0644]