Difference in assemble language

Richard Earnshaw rearnsha@arm.com
Thu Mar 29 12:02:00 GMT 2001

> Hi,
> I am slightly coming around the assembler problem now by manually editing
> the files. However, when i compile my files a get some strange problem (se
> below)
> bash.exe-2.04$ make
> arm-elf-gcc -mcpu=arm7tdmi                       -lgcc -nostdlib -o
> LED_BLINK led_blink.o ../../periph/pio/lib_pio.o ../../periph/power_savi
> ng/lib_ps40800.o ../../periph/aic/lib_aic.o ../../periph/ebi/lib_ebi.o
> ../../periph/mem/ram_test.o ../../periph/mem/relocate.o ../../periph/
> special_function/lib_sf.o ../../periph/spi/lib_spi.o
> ../../periph/stdc/lib_err.o ../../periph/timer_counter/lib_tc.o
> ../../periph/usart/lib_
> usart.o ../../periph/watchdog/lib_wd.o ../../periph/watchdog/irq_wd.o
> -Tlinkerscript.ld -lgcc
> crt0.o: In function `have_jeeni0':
> crt0.o(.text+0xc0): undefined reference to `memcpy'
> crt0.o(.text+0xc0): relocation truncated to fit: R_ARM_PC24 memcpy
> crt0.o: In function `have_jeeni1':
> crt0.o(.text+0xdc): undefined reference to `memset'
> crt0.o(.text+0xdc): relocation truncated to fit: R_ARM_PC24 memset
> crt0.o(.text+0xf0): undefined reference to `exit'
> crt0.o(.text+0xf0): relocation truncated to fit: R_ARM_PC24 exit

memcpy, memset and exit are all in libc.a, but you have told the linker 
not to include that when linking (-nostdlib).

Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

More information about the crossgcc mailing list