A ELF executable can be reloctable?
Jonathan Larmour
jlarmour@redhat.com
Thu Feb 22 12:48:00 GMT 2001
> Cliff Tsai wrote:
>
> Hi:
> We know that a ELF shared library is dynamic linking and
> reloctable,
Actually they don't always need to be relocatable, although it is
recommended and usually what you want.
> and how about the ELF executables?
> Are ELF executables reloctable?
Not by default. In general, you need to compile with -fPIC to get this
although the specifics can differ between architectures.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list