PATCH: PR ld/14156: -sort-section=alignment trashes init/fini sections, and anything similar
H.J. Lu
hjl.tools@gmail.com
Tue Jul 10 06:24:00 GMT 2012
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.
More information about the Binutils
mailing list