This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: envcache: huh?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Mon, 1 Aug 2005 14:33:10 +0200
- Subject: Re: envcache: huh?
- References: <SERRANO1YeddNPmL53n00000030@SERRANO.CAM.ARTIMI.COM>
- Reply-to: cygwin-developers at cygwin dot com
On Jul 28 14:45, Dave Korn wrote:
> And we're storing through the 'x' member, which is a DWORD pointer, yes?
>
> And the thing we're storing into is a bool, yes?
>
> Which is one byte in size, yes?
>
> ------------------------<snip>------------------------
> .data
> _envcache:
> .byte 1
> .text
> ------------------------<snip>------------------------
>
>
> Oops?
It is fishy, I agree. Probably we had no problem so far since there's
no overlapping within 4 bytes in the DLL, AFAICS, but this could change
with another ld version. I guess your idea is worthwhile to implement.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.