From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13265 invoked by alias); 6 Dec 2001 20:14:44 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 13151 invoked from network); 6 Dec 2001 20:14:37 -0000 Received: from unknown (HELO bothner.com) (216.102.199.253) by sources.redhat.com with SMTP; 6 Dec 2001 20:14:37 -0000 Received: from bothner.com (eureka.bothner.com [192.168.1.9]) by bothner.com (8.11.6/8.11.6) with ESMTP id fB6KDng19078; Thu, 6 Dec 2001 12:13:49 -0800 Message-ID: <3C0FD1BF.6000709@bothner.com> Date: Thu, 06 Dec 2001 12:33:00 -0000 From: Per Bothner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: Geoff Keating CC: gcc@gcc.gnu.org Subject: Re: misleading statement in bugs.html#known References: <3C0E8E95.20202@bothner.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00301.txt.bz2 Geoff Keating wrote: > printf (&__stdin, ...) > > then this works with dynamic linking by creating space in the > executable for '__stdin', resolving the address of __stdin at link > time, and copying at startup time the initial contents of __stdin to > that space Ugh. Ick. This is unfortunate mechanism, not that I know enough about dynamic linking to know if there is (or could be) a better way. But it seems we're stuck with it. Thanks for the replies and explanations. -- --Per Bothner per@bothner.com http://www.bothner.com/per/