Subject: Re: src/lib/csu/sparc_elf/crt0.c static ... ___start versus -O3
To: Sean Doran <smd@ebone.net>
From: Eduardo E. Horvath <eeh@one-o.com>
List: port-sparc
Date: 10/28/1999 09:24:53
> As with the -i386 port, .../sparc_elf/crt0.c needs to be
> compiled with -O2 or less optimization, or the static
> keyword has to be eliminated from the front of the
> ___start prototype and function declaration.
> 
> Otherwise:
> 
> cc -o buffer buffer.o sem.o
> /usr/lib/crt0.o(.text+0x28): undefined reference to `___start'
> collect2: ld returned 1 exit status

The simple solution is to not make that function `static'.  Look at
.../sparc64/crt0.c which does not have that problem.

=========================================================================
Eduardo Horvath				eeh@one-o.com
	"I need to find a pithy new quote." -- me