From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13034 invoked by alias); 24 May 2006 12:56:11 -0000 Received: (qmail 12304 invoked from network); 24 May 2006 12:56:01 -0000 Received: from unknown (195.23.133.213) by sourceware.org with QMTP; 24 May 2006 12:56:01 -0000 Received: (qmail 9146 invoked from network); 24 May 2006 12:55:59 -0000 Received: from unknown (HELO mailfrt09.isp.novis.pt) ([195.23.133.201]) (envelope-sender ) by mailrly03.isp.novis.pt with compressed SMTP; 24 May 2006 12:55:59 -0000 Received: (qmail 19244 invoked from network); 24 May 2006 12:55:58 -0000 Received: from unknown (HELO mamas-laptop) ([195.23.225.202]) (envelope-sender ) by mailfrt09.isp.novis.pt with SMTP; 24 May 2006 12:55:58 -0000 Received: from localhost ([127.0.0.1]) by mamas-laptop with esmtp (Exim 4.62) (envelope-from ) id IZRT97-000210-9Y for binutils@sourceware.org; Wed, 24 May 2006 13:55:55 +0100 Message-ID: <447457D9.8050202@portugalmail.pt> Date: Wed, 24 May 2006 14:33:00 -0000 From: Pedro Alves User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: binutils@sourceware.org Subject: Re: environ is autofiltered from dll export list? References: <04d701c67f2d$e3c433a0$a501a8c0@CAM.ARTIMI.COM> In-Reply-To: <04d701c67f2d$e3c433a0$a501a8c0@CAM.ARTIMI.COM> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0621-2, 23-05-2006), Outbound message X-Antivirus-Status: Clean X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00433.txt.bz2 Dave Korn wrote: > On 23 May 2006 22:02, Pedro Alves wrote: > > >> Also, while looking at it, why are _fmode, _impure_ptr, >> cygwin_attach_dll, cygwin_premain0, cygwin_premain1, cygwin_premain2, >> cygwin_premain3 and environ in the autofilter_symbolprefixlist[] instead >> of the autofilter_symbollist[]? Probably an oversight. >> > > Actually, it really suggests that "cygwin_premain" should be in the prefix > list. The others should probably move to the symbol list as you suggest. > > Ok, I can provide a patch for that, but I would like to understand the environ part of my question first. > char** environ is explicitly disabled from dll exporting in pe-dll.c's autofilters. Why is it? I tried to look in the archives, > back when the auto-importing was introduced, but couldn't find the rationale. > Should every dll have its own environ? I think this was needed when there was no auto-importing, and cygwin defined environ as __cygwin_environ: http://www.zsh.org/mla/workers/2000/msg03158.html Is it still needed? In that case I will have to conditionally compile out that part for arm-wince-pe target. Cheers, Pedro Alves