This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ARM: position-independent data
- From: "Jens Rosenboom" <jens dot rosenboom at web dot de>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 4 Sep 2012 23:25:55 +0200 (CEST)
- Subject: ARM: position-independent data
- Sensitivity: Normal
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