]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
meaningless p_offset for zero p_filesz PT_LOAD
authorAlan Modra <amodra@gmail.com>
Mon, 10 Mar 2025 12:32:19 +0000 (23:02 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 10 Mar 2025 12:32:19 +0000 (23:02 +1030)
commitebed0bfecc7f482a2c284947527427625ee42c1a
treeabb75c821553baa1df2a61b2771c883f16704e60
parentb8c5ada1742586d389cec1b82f69c895976b1849
meaningless p_offset for zero p_filesz PT_LOAD

This patch avoids generating PT_LOAD segments that trip a bug in
glibc's loader.

PR 25237
PR 32763
* elf.c (assign_file_positions_for_load_sections): Don't put
p_offset zero for empty PT_LOAD.
bfd/elf.c