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: [PATCH] ELF: Don't sort output note section by alignments in ascending order


On Fri, Oct 05, 2018 at 05:46:04AM -0700, H.J. Lu wrote:
> On Fri, Oct 5, 2018 at 5:37 AM Nick Clifton <nickc@redhat.com> wrote:
> >
> > Hi H.J.
> >
> > > Since we can only insert a note section after another note section,
> >
> > Why is this ?
> >
> > If the note section that we want to insert has a different alignment
> > from the any previous note section why can't we insert it where we like ?
> 
> lang_insert_orphan calls insert_os_after to place a note section output
> statement.  Since it needs an existing output statement to insert after,
> there is no way to place a section BEFORE a note output statement
> if it is the first output statement.

The first output section statement is the one created in lang_init,
the dummy abs_output_section.  Any output section statement for a note
section is *not* the first on the list.

-- 
Alan Modra
Australia Development Lab, IBM


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