undefined sbrk in libnosys

Jeff Johnston jjohnstn@redhat.com
Wed May 26 21:37:00 GMT 2004

A change was made last April that removed the headers in sbrk.c.  These headers 
are needed to rename the _xxxx syscalls for systems that define the 
MISSING_SYSCALLS flag.  The powerpc-eabi is one of these platforms.  I have just 
checked the following patch in which fixes the problem.

2004-05-26  Jeff Johnston  <jjohnstn@redhat.com>

         * libnosys/sbrk.c: Add include of <_syslist.h> and "config.h".

-- Jeff J.

Marc Schafer wrote:
> i have two cygwin systems.  one is powerpc-eabi-gcc 3.3.1 with newlib 1.11 and the other is powerpc-eabi-gcc
> 3.4.0 with newlib 1.12
> On the 1.11 system, my application compiles fine.  However, on the 1.12 system I get a linker error because
> sbrk is undefined.  Both use the same makefile and linker script.
> nm shows sbrk in libnosys in the 1.11 version but it shows _sbrk in the 1.12 system.  Is that _ the reason for
> the linker error?  Did I do something wrong when I built newlib?
> thanks,
> marc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libnosys.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20040526/340aaf66/attachment.ksh>

More information about the Newlib mailing list