logo       

[linux-sh:03181] Re: can't link with crtend.o: msg#00016

linux.ports.sh.general

Subject: [linux-sh:03181] Re: can't link with crtend.o

On Sat Feb 28, 2004 at 01:03:35AM -0500, Alexander Gdalevich wrote:
> Here is how I build it:
> sh-elf-gcc -c -m4 -Wall -Wa,-ahls=Program.lst Program.cpp -o Program.o
>
> sh-elf-ld -N -Ttext 0x08000000 -T prog.lnkscr Program.o crtend.o -lc -lm
> -lgcc -M -S -oformat=binary --verbose -o Program.bin > linkmap.map
>
>
> Linker complains about an : undefined reference to `__do_global_ctors_aux

Try adding '-lgcc_s' rather than '-lgcc'

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise