This is the mail archive of the 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: Map "" and ".text.unlikely" input section prefixes to separate output sections.

Hi Ian,

   I finally got around to doing this in a way you suggested a while
back, that is sorting text sections within the output section rather
than creating separate output sections.  Patch attached.


On Tue, Sep 13, 2011 at 3:32 PM, Ian Lance Taylor <> wrote:
> Sriraman Tallam <> writes:
>>   Sections prefixed with "", ".text.unlikely" and
>> ".text.startup" should map to separate output sections so that they
>> can be grouped together. The following simple patch does this. Alright
>> to submit?
> The GNU linker puts all input sections into the .text output
> section.  It just groups them together.  I would prefer to do that in
> gold, too.  Your patch would create a output section, which is
> not what I would like to see.
> Ideally gold should group all input sections with the same name
> together, regardless of what output section they are going to.  I
> believe this can be done in Output_section::add_input_section if we
> preserve the name in Input_section_list.  The main drawback is that this
> may mean giving up on the current optimization of not building an
> Input_section_list.
> Ian

Attachment: text_section_grouping_patch.txt
Description: Text document

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