Gold linker patch to split unlikely text into a separate segment

Cary Coutant ccoutant@gmail.com
Fri Oct 20 04:04:00 GMT 2017


>> Won't that put *each* .text.unlikely section in its own unique
>> segment? Don't you want one segment containing all .text.unlikely
>> sections?
>
> Yes and that is exactly what this does. The output section here
> aggregates all text.unlikely sections.  The set_is_unique_segment puts
> this output section in a separate PT_LOAD segment.
>
> There are two is_unique_segment methods, one for Output_section and
> one for Output_segment, maybe that is why this is confusing.   This
> patch does not change Output_segment, it only changes Output_section.

Got it. Sorry for the confusion.

This is OK. Thanks!

-cary



More information about the Binutils mailing list