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] |
----- Original Message ----- From: "Ola Liljedahl" <olli@enea.se> To: "Jonathan Larmour" <jlarmour@redhat.com> Cc: "Cliff Tsai" <clifftsai@minecard.com.tw>; "crossgcc" <crossgcc@sources.redhat.com> Sent: Friday, February 23, 2001 4:59 AM Subject: Re: A ELF executable can be reloctable? > Jonathan Larmour wrote: > > > > > 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. > Many embedded compilers (Green Hills, Diab) generate executable ELF files > with relocation information. We use that to run time load and relocate > ELF programs into OSE single address space (but protected) memory. > > With some tricks it is even possible to make GCC generate relocatable > (and absolutely linked) ELF files. > -- > Ola What tricks,can you expalin in more detail? I'm not that fimilar to compiler. Thank! __________________________________________________________________ > Ola Liljedahl olli@enea.se System Architect Enea OSE Systems AB > ------ 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] |