PATCH: make __sf_fake_std{in,out,err} weak in impure.c

Sandra Loosemore sandra@codesourcery.com
Thu Jan 11 02:36:00 GMT 2007


This patch fixes a problem I noted when building some test programs for a target 
board that has a very small amount of memory.  Even though the program did not 
use stdio features, the references to __sf_fake_std{in,out,err} in impure.c were 
causing the linker to suck in their definitions in findfp.o, along with all the 
other stuff in that file, which in turn sucked in _malloc_r.

-Sandra

-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib.log
Type: text/x-log
Size: 198 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20070111/81c390cb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib.patch
Type: text/x-patch
Size: 997 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20070111/81c390cb/attachment-0001.bin>


More information about the Newlib mailing list