From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16284 invoked by alias); 23 May 2006 21:01:42 -0000 Received: (qmail 15687 invoked from network); 23 May 2006 21:01:35 -0000 Received: from unknown (195.23.133.215) by sourceware.org with QMTP; 23 May 2006 21:01:35 -0000 Received: (qmail 3557 invoked from network); 23 May 2006 21:01:32 -0000 Received: from unknown (HELO mailfrt08.isp.novis.pt) ([195.23.133.200]) (envelope-sender ) by mailrly05.isp.novis.pt with compressed SMTP; 23 May 2006 21:01:32 -0000 Received: (qmail 11062 invoked from network); 23 May 2006 21:01:32 -0000 Received: from unknown (HELO mamas-laptop) ([195.23.225.202]) (envelope-sender ) by mailfrt08.isp.novis.pt with SMTP; 23 May 2006 21:01:32 -0000 Received: from localhost ([127.0.0.1]) by mamas-laptop with esmtp (Exim 4.62) (envelope-from ) id IZQL2J-000644-86 for binutils@sourceware.org; Tue, 23 May 2006 22:01:31 +0100 Message-ID: <4473782A.4090008@portugalmail.pt> Date: Wed, 24 May 2006 07:38:00 -0000 From: Pedro Alves User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: binutils@sourceware.org Subject: environ is autofiltered from dll export list? 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/msg00419.txt.bz2 Hi all, 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? 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. Cheers, Pedro Alves from pe-dll.c: static autofilter_entry_type autofilter_symbolprefixlist[] = { { "__imp", 5 }, /* Do __imp_ explicitly to save time. */ (...) { "_impure_ptr", 11 }, { "cygwin_attach_dll", 17 }, { "cygwin_premain0", 15 }, { "cygwin_premain1", 15 }, { "cygwin_premain2", 15 }, { "cygwin_premain3", 15 }, { "environ", 7 }, { NULL, 0 } };