This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ARM: position-independent data


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]