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
On Tuesday 03 July 2007, Andreas Schwab wrote:
> "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.
However gcc will still use the RO data addressing model, which means it's only
of limited use.
Paul