Error sbrk undefined

Jens Doege
Tue Jun 17 05:19:00 GMT 1997


I use cygnus gcc2.7.2 with newlib-1.7.0.

When linking my project 

gcc68k -static -T ld.scr test.o upd72611.o dcpio.o bios.o endian.o
g_scsi.o dsp_acc.o vec_tbl.o	-o fwtest.rom

I get the following error message: 

/usr/local/m68k-unknown-coff/lib/libg.a(sbrkr.o): In function `_sbrk_r':
sbrkr.c:60: undefined reference to `sbrk'
make: *** [fwtest] Error 1

I figured out, thet it has something to do with the malloc() function I
Does anybody have an idea, what I'm doing wrong?

Thanks in advance,


More information about the crossgcc mailing list