This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC/Arm-Cortex-M3 position independant code AND data
christophe.lavarenne@free.fr writes:
> Can anybody here point me to places in GCC sources where the
> .text and .rodata section addressing modes are selected, and
> to documentation to read to contribute cleanly this modification?
config/arm/arm.c
http://gcc.gnu.org/onlinedocs/gccint/
Unfortunately making this change is probably harder than you think.
There is a bunch of code which deals with addressing mode issues. Also
I would worry about whether the PC offsets will be in range.
Ian