This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question regarding getting .rodata into the .data section instead of .text
- From: Andreas Schwab <schwab at suse dot de>
- To: "Richmond Tuttle" <tuttle at ulticom dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 03 Jul 2007 20:47:39 +0200
- Subject: Re: Question regarding getting .rodata into the .data section instead of .text
- References: <A51D8ACD861B7E41BFC7FE5C64BE96480213BFBD@MTLEXVS01.ulticom.com>
"Richmond Tuttle" <tuttle@ulticom.com> writes:
> Is there a command option (for GCC, G++, and/or GAS) that will force
> .rodata (like jump tables) to be located in the .data section?
You can use a linker script to override the default placement.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."