This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [patch] Adjust _REENT_SMALL to be binary compatible with normal layout.
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Thu, 3 Jun 2010 14:16:48 +0200
- Subject: Re: [patch] Adjust _REENT_SMALL to be binary compatible with normal layout.
- References: <20100602143317.C04DC5664EE@henry1.codesourcery.com>
- Reply-to: newlib at sourceware dot org
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