Subject: Re: ELF stuff
To: Ben Harris <bjh21@netbsd.org>
From: Philip Blundell <philb@gnu.org>
List: port-arm32
Date: 02/02/2001 17:17:45
>* (gas) Support for ARM ELF PIC relocations (didn't work last time I
>  checked)

If you do this the `Linux way' (ie set NEED_GOT_RELOC and NEED_PLT_RELOC in 
your gcc config) then it should "just work" for GAS.  It wouldn't be hard to 
implement the traditional *BSD scheme of having -k make PIC the default (right 
now it just turns on the PIC flag in the ELF header) - the only reason this 
isn't in the FSF sources already is that there were copyright problems with 
the original patches.

>* (ld) More sensible ARM ELF linker script (e.g. with separate text and
>  data segments)

I doubt you need much of anything here.  ELF targets tend to have almost 
identical linker scripts.  The ARM ones need a bit of extra gunk to handle 
.glue_7t, but everything else is pretty standard.

p.