[patch] Adjust _REENT_SMALL to be binary compatible with normal layout.

Corinna Vinschen vinschen@redhat.com
Thu Jun 3 14:13:00 GMT 2010


On Jun  2 07:33, Kazu Hirata wrote:
> Hi,
> 
> Attached is a patch to adjust _REENT_SMALL to be binary compatible
> with normal layout.
> 
> Specifically, this patch makes the first few members identical between
> the _REENT_SMALL and !_REENT_SMALL versions of _reent.  This way,
> source code compiled with the _REENT_SMALL headers can be linked
> against the !_REENT_SMALL version of libc, and vice versa.  Note that
> members like _stdin, _stdout, and _stderr "leak" into the users'
> object code because stdin, for example, is expanded to:
> 
>   _impure_ptr->_stdin
> 
> Tested on arm-none-eabi.  OK to apply?
> 
> Kazu Hirata
> 
> 2010-06-02  Paul Brook  <paul@codesourcery.com>
> 
> 	* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
> 	binary compatible with normal layout.
> 	(_REENT_INIT): Adjust to match struct layout.

Looks good to me.  Please apply.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Newlib mailing list