GCC/Arm-Cortex-M3 position independant code AND data

Ian Lance Taylor iant@google.com
Tue Aug 18 18:22:00 GMT 2009


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



More information about the Gcc-help mailing list