This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: misleading statement in bugs.html#known


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]