[PATCH] x86-64: Increase output copy relocation section alignment
Alan Modra
amodra@gmail.com
Mon Feb 17 21:32:27 GMT 2025
On Mon, Feb 17, 2025 at 10:19:00PM +0800, H.J. Lu wrote:
> On Mon, Feb 17, 2025 at 9:01 PM Alan Modra <amodra@gmail.com> wrote:
> > Also, can't you use output_sec = s->output_section here?
>
> For x86_64, s->output_section is NULL
Really? Then you have another serious problem. How did that happen?
Sections are supposed to be assigned to output sections by
map_input_to_output_sections or lang_place_orphans. Any sections
needed by the linker are supposed to be created before
map_input_to_output_sections, typically by check_relocs.
--
Alan Modra
More information about the Binutils
mailing list