[PATCH] elf: Set text-segment address to the maximum page size
H.J. Lu
hjl.tools@gmail.com
Thu May 28 03:08:37 GMT 2026
When generating Position Dependent Executable for ELF with the maximum
page size set on command-line, if text-segment address is lower than the
maximum page size, set text-segment address to the maximum page size.
PR ld/34184
* ldexp.c (fold_binary): Set text-segment address to the maximum
page size for ELF PDE output with -z max-page-size=SIZE.
* testsuite/ld-elf/elf.exp: Add ld/34184 test.
* testsuite/ld-elf/pr34184.c: New file.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-elf-Set-text-segment-address-to-the-maximum-page-siz.patch
Type: text/x-patch
Size: 2549 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260528/a7e446e3/attachment.bin>
More information about the Binutils
mailing list