This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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