]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 32324, Stripping BOLT'ed binaries leads to unwanted behaviour
authorAlan Modra <amodra@gmail.com>
Sun, 22 Dec 2024 23:56:02 +0000 (10:26 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Dec 2024 04:24:19 +0000 (14:54 +1030)
commitbbc969306f8d5fb6c7b636e25f6f8e278946ef23
tree95d9b608fdb0ba2da904411628681ea5e3e87f88
parentc8fcfa9aad211dfd8296ae6e978a356797936c61
PR 32324, Stripping BOLT'ed binaries leads to unwanted behaviour

This patch corrects layout for a PT_LOAD header that doesn't include
the ELF file header but does contain PHDRs and sections requiring
alignment.  The required alignment (which was missing) is placed
before the PHDRs.
bfd/elf.c
ld/testsuite/ld-elf/size-2.d