This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Gold linker patch to split unlikely text into a separate segment


>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]