This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Start address of a binary
- To: Sébastien Côté <scote1 at Matrox dot COM>
- Subject: Re: Start address of a binary
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 21 Feb 2001 10:50:08 -0300
- Cc: help-gcc at gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010220142849.A9129@dyn-52-73.matrox.com>
On Feb 20, 2001, Sébastien Côté <scote1@Matrox.COM> wrote:
> ld : warning: cannot find entry symbol _start; defaulting to 0180074
> Is 0x180074 right?
It may be. If no _start symbol exists in the executable, the linker
probably assumes it should start in the beginning of the .text
section. But you'd better define _start properly so that it calls
global initializers, then main().
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me