Re: [uClinux-dev] Re: XIP on an ARM processor (R_ARM_GOTOFF32)

2006-06-29 Thread Richard Earnshaw
On Wed, 2006-06-28 at 16:51, Shaun Jackman wrote: On 6/27/06, David McCullough [EMAIL PROTECTED] wrote: AFAIK, you need to drop the -FPIC in favour of -fpic everywhere. From the GCC manual, -fpic vs. -fPIC `makes a difference on the m68k, PowerPC and SPARC.' For my purposes, it makes no

Re: [uClinux-dev] Re: XIP on an ARM processor (R_ARM_GOTOFF32)

2006-06-28 Thread Shaun Jackman
On 6/27/06, David McCullough [EMAIL PROTECTED] wrote: AFAIK, you need to drop the -FPIC in favour of -fpic everywhere. From the GCC manual, -fpic vs. -fPIC `makes a difference on the m68k, PowerPC and SPARC.' For my purposes, it makes no difference on the ARM. You could try some

Re: [uClinux-dev] Re: XIP on an ARM processor (R_ARM_GOTOFF32)

2006-06-28 Thread Shaun Jackman
On 6/28/06, Shaun Jackman [EMAIL PROTECTED] wrote: I have experimented with GCC 4.0.3, 4.1.0, and 4.1.1. I found that 4.1.x behave the same; however, GCC 4.0.3 does not emit GOTOFF32 relocations. Apparently these are a new feature and preferable in some instances since they do reduce the number

Re: [uClinux-dev] Re: XIP on an ARM processor (R_ARM_GOTOFF32)

2006-06-27 Thread David McCullough
Jivin Shaun Jackman lays it down ... On 6/27/06, Shaun Jackman [EMAIL PROTECTED] wrote: I'm attempting to build an XIP Hello, world! application for the ARM processor. I'm compiling with -fPIC -msingle-pic-base with the default -mpic-register=r10. The layout of the memory map is such that the

Re: [uClinux-dev] Re: XIP on an ARM processor (R_ARM_GOTOFF32)

2006-06-27 Thread Shaun Jackman
On 6/27/06, David McCullough [EMAIL PROTECTED] wrote: Are you using the ld-elf2flt/elf2flt.ld combo ? It lays things out in a known way and has a '-move-rodata' option which will put the rodata in with the .text if it contains no relocation info needed at runtime. Something like this on the

Re: [uClinux-dev] Re: XIP on an ARM processor (R_ARM_GOTOFF32)

2006-06-27 Thread David McCullough
Jivin Shaun Jackman lays it down ... On 6/27/06, David McCullough [EMAIL PROTECTED] wrote: Are you using the ld-elf2flt/elf2flt.ld combo ? It lays things out in a known way and has a '-move-rodata' option which will put the rodata in with the .text if it contains no relocation info