public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Entry point in a relocatable  object file
@ 2003-12-08 16:58 Djath Kokou
  2003-12-09  5:13 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Djath Kokou @ 2003-12-08 16:58 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'; +Cc: Djath Kokou

Hi all,

Is it possible to specify an entry point with the linker in a relocatable
output file (-r option) ?

Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Entry point in a relocatable  object file
  2003-12-08 16:58 Entry point in a relocatable object file Djath Kokou
@ 2003-12-09  5:13 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2003-12-09  5:13 UTC (permalink / raw)
  To: Djath Kokou; +Cc: 'gcc-help@gcc.gnu.org'

Djath Kokou <Kokou.Djath@ixfin-mmarellise.com> writes:

> Is it possible to specify an entry point with the linker in a relocatable
> output file (-r option) ?

This is a binutils question, not a compiler question.

The answer is yes.  However, precisely what the effects will be
depends upon your object file format.  For example, in an ELF object
file, typically all sections will have a VMA of zero.  So while you
can specify a start address, there isn't much you can safely do with
it, since the start address is just an address, and you can't reliably
determine which section that address refers to.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-09  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-08 16:58 Entry point in a relocatable object file Djath Kokou
2003-12-09  5:13 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).