https://sourceware.org/bugzilla/show_bug.cgi?id=34184
--- Comment #4 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6286d4a211871078952fd51282f53f7f9626956f commit 6286d4a211871078952fd51282f53f7f9626956f Author: H.J. Lu <[email protected]> Date: Thu May 28 10:47:37 2026 +0800 elf: Set image base address to the maximum page size When generating Position Dependent Executable for ELF with the maximum page size set on command-line, set the default image base address to the maximum page size to avoid segfault if it is lower than the maximum page size and issue an warning if the image base address set on command-line is lower than the maximum page size. PR ld/34184 * ldexp.c (fold_binary): Set the default image base address to the maximum page size for ELF PDE output if it is lower than the maximum page size set on command-line and issue an warning if the image base address set on command-line is lower than the maximum page size. * testsuite/ld-elf/elf.exp: Add ld/34184 tests for PDE, PIE static PDE and static PIE. * testsuite/ld-elf/pr34184.c: New file. * testsuite/ld-elf/textaddr3.d: Change -Ttext-segment address to 0x200100 so that it > the maximum page size. * testsuite/ld-elf/textaddr5.d: Likewise. * testsuite/ld-elf/textaddr8.d: New test. * testsuite/ld-elf/textaddr9.d: Likewise. * testsuite/ld-elf/textaddr10.d: Likewise. Signed-off-by: H.J. Lu <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
