This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ELF: Don't sort output note section by alignments in ascending order
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.
--
H.J.