Re: ARM: position-independent data

2012-09-10 Thread Richard Henderson
On 09/04/2012 02:25 PM, Jens Rosenboom wrote: > 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? You need to catch this much earlier than this. See the encode_section_info hook

ARM: position-independent data

2012-09-04 Thread Jens Rosenboom
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 independenc