Linking problems

Daniel.Andersson@combitechsystems.com Daniel.Andersson@combitechsystems.com
Mon Apr 2 05:56:00 GMT 2001


Hi,

I get the below error when i am building my EB40 application. What does the
linker mean with the "end"? When i check which file it is that wants to use
the expression then it says that it shall be defined by the linker....???
(look below). Where is the "end" variable supposed to be located?

/Daniel

------error output-----
/src/newlib/arm-elf/newlib/libc/libc.a(syscalls.o): In function `_sbrk':
/src/newlib/newlib-1.9.0/newlib/libc/sys/arm/syscalls.c:496: undefined
reference to `end'
-----------------------


----from file syscalls.c------
caddr_t
_sbrk (int incr)
{
  extern char   end asm ("end");	/* Defined by the linker.  */
....
....
....
------------------------------


------
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