This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: RFA: Fix RX linker script for big-endian data
- From: DJ Delorie <dj at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: newlib at sourceware dot org
- Date: Mon, 5 Jan 2015 13:31:19 -0500
- Subject: Re: RFA: Fix RX linker script for big-endian data
- Authentication-results: sourceware.org; auth=none
- References: <87ioh2b7up dot fsf at redhat dot com>
> The fix is to move all of the startup code into the .text section and
> then everything works.
>
> OK to apply ?
No. .init/.fini are executable (they are code fragments) and should
be in .text; but .init_array/.preinit_array/.fini_array are data
(arrays of addresses), should be in .data/.rodata, and should not be
marked executable.