This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

StrongARM newlib & crt0.o


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,-Map=testprogram.map --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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]