Subject: Re: src/lib/csu/sparc_elf/crt0.c static ... ___start versus -O3
To: Sean Doran <email@example.com>
From: Eduardo E. Horvath <firstname.lastname@example.org>
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.
> 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 email@example.com
"I need to find a pithy new quote." -- me