This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: RFA: RX: Move init functions into .text section
- From: DJ Delorie <dj at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: newlib at sourceware dot org
- Date: Wed, 4 Nov 2015 11:47:26 -0500
- Subject: Re: RFA: RX: Move init functions into .text section
- Authentication-results: sourceware.org; auth=none
- References: <87twp1hguf dot fsf at redhat dot com>
> Current the RX linker script in libgloss/rx puts the language
> initialisation arrays into the .data section. The patch below moves
> them into the .text section. This matters when running on an RX in
> big-endian-data mode since byte swapping is different for data and
> code.
The .init section is code. The .init_array section is data.