This is the mail archive of the
mailing list for the binutils project.
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 <firstname.lastname@example.org> 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.