This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: A ELF executable can be reloctable?


> 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


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