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


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

Error sbrk undefined


Hi!

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
use. 
Does anybody have an idea, what I'm doing wrong?


Thanks in advance,

Jens.