[PATCH] x86-64: Increase output copy relocation section alignment

H.J. Lu hjl.tools@gmail.com
Mon Feb 17 10:14:29 GMT 2025


commit 73ab3b9825d232f0f3a4ad811e88697f9b9ab162
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 30 08:48:45 2025 +0800

    x86-64: Estimate output section layout before sizing dynamic sections

updated elf_x86_64_before_allocation to estimate output section layout
before sizing dynamic sections.  _bfd_x86_elf_adjust_dynamic_symbol
adjusts the input .data.rel.ro section alignment for copy relocation.
When it is called before sizing dynamic sections, it leads to the output
copy relocation section alignment change between assignments of relro
base and end.  Update _bfd_x86_elf_adjust_dynamic_symbol to increase
the output copy relocation section alignment if needed.

PR ld/32690
* elfxx-x86.c (_bfd_x86_elf_adjust_dynamic_symbol): Adjust the
output copy relocation section alignment if needed.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-64-Increase-output-copy-relocation-section-align.patch
Type: text/x-patch
Size: 2389 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250217/aa63db62/attachment.bin>


More information about the Binutils mailing list