This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: misleading statement in bugs.html#known
- From: Per Bothner <per at bothner dot com>
- To: Geoff Keating <geoffk at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 06 Dec 2001 12:14:55 -0800
- Subject: Re: misleading statement in bugs.html#known
- References: <3C0E8E95.20202@bothner.com> <jmitblz67i.fsf@geoffk.org>
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/