Subject: Re: NOTICE: i386 port switched to ELF binary format
To: Frank van der Linden <frank@wins.uva.nl>
From: Johan Danielsson <joda@pdc.kth.se>
List: port-i386
Date: 07/06/1999 11:34:42
Frank van der Linden <frank@wins.uva.nl> writes:

> I'm not quite sure what causes the warning; I suspect that _start
> just needs to be added as alias to __start in crt0.c

I know what is causing it (ld is), but I don't know how things are
supposed to be (one or two underscores). I have been bugging various
people about this since I switched to ELF this winter.

To quote myself:

> To: matthew green <mrg@eterna.com.au>
> Cc: port-sparc@netbsd.org
> Subject: Re: linking ELF userland generates scary warning :)
> From: joda@pdc.kth.se (Johan Danielsson)
> Date: 08 Jun 1999 22:35:07 -0700
> Message-ID: <xofn1yarl6c.fsf@blubb.pdc.kth.se>
> 
> matthew green <mrg@eterna.com.au> writes:
> 
> > /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00010ad0
> 
> I made this change for i386, dunno if it's the correct thing to do,
> but it killed that warning (this is in src/gnu/dist/ld).
> 
> /Johan
> 
> --- elf_i386.sh 1999/01/30 08:15:37     1.1.1.2
> +++ elf_i386.sh 1999/06/09 05:33:27
> @@ -9,3 +9,4 @@
>  TEMPLATE_NAME=elf32
>  GENERATE_SHLIB_SCRIPT=yes
>  ELFSIZE=32
> +ENTRY=__start

/Johan