StrongARM newlib & crt0.o

David J Croyle
Mon Jun 5 06:41:00 GMT 2000

Hello again.

After including -lgcc in our Makefile lines, we only 
recieve an error message about crt0.o(error message is below).

Any more suggestions?

Thanks so much!!
Dave & Vasant.

We get:

crt0.o(.text+0xd4): undefined reference to `__bss_start__'
crt0.o(.text+0xd8): undefined reference to `__bss_end__'
collect2: ld returned 1 exit status
make: *** [testprogram] Error 1

Our makefile is again:

CFLAGS = -g -Wall -Wa,-a=$*.lst

testprogram:  	helloworld.o
		arm-elf-gcc $(CFLAGS) -otestprogram crt0.o helloworld.o \			
-Wl, --cref 							
-L/usr/local/home/vram/strongarm_embedded/newlib_test \
		-nostartfiles -nodefaultlibs -nostdlib -lc -nostartfiles -lgcc

helloworld.o	:   helloworld.c
			arm-elf-gcc $(CFLAGS) -c -O helloworld.c -lgcc

	rm -f helloworld.o testprogram.o *.lst *.map
	rm -f testprogram

More information about the Newlib mailing list