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: PR ld/14156: -sort-section=alignment trashes init/fini sections, and anything similar


On Mon, Jul 9, 2012 at 11:12 PM, Alan Modra <amodra@gmail.com> wrote:
> On Mon, Jul 09, 2012 at 10:12:15PM -0700, H.J. Lu wrote:
>> >>         PR ld/14156
>> >>         * NEWS: Mention SORT_NONE.
>
> You add SORT_NONE but then don't use it to fix this bug?
>

Since I'd like to avoid changes to existing linker script, I
give special treatment for .init/.fini section.  SORT_NONE
will only be needed for other sections.

In this way, user can use the same linker script for both old
and new linkers unless they have special sections which
require SORT_NONE.  Of course, --sort-section=alignment
only works with the new linker.


-- 
H.J.


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