This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: Start address of a binary


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


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