ARM: position-independent data
Jens Rosenboom
jens.rosenboom@web.de
Tue Sep 4 21:26:00 GMT 2012
Hello All,
Do you maybe know how to find out (in legitimize_pic_address() and in arm_assemble_integer()) whether an address (rtx) is in text/rodata or in data?
Maybe something like MEM_READONLY_P()? (But I don't know how to apply this to an rtx ...)
That is for "read-only position independence" and "read-write position independence" (as described in the "Procedure Call Standard for the ARM Architecure"), which use a static base register for the data segment and pc-relative addressing for everything in the text segment (and, at least in my case, no GOT). I would like to use that for some PalmOS things.
There is a bug entry http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28194 related to this topic, but aparently nobody uses XIP on ARM with gcc 4.7.x.
Bye,
Jens
More information about the Gcc
mailing list