public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* GNU ld and -init/-fini
@ 1999-07-01  0:00 mark
  1999-07-01  0:00 ` Richard Henderson
  1999-07-01  0:00 ` Ian Lance Taylor
  0 siblings, 2 replies; 4+ messages in thread
From: mark @ 1999-07-01  0:00 UTC (permalink / raw)
  To: binutils

The IRIX 6 linker provdides -init and -fini switches.  These switches
set DT_INIT and DT_FINI flags in the dynamic table, which cause the
named functions to be executed at initialization/finalization time.
GCC uses these to call global constructors when a shared library is
loaded.

There do not seem to be equivalent GNU ld switches.  What is the
method used on Linux, etc. in order to make the same sort of thing
happen?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-07-01  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-01  0:00 GNU ld and -init/-fini mark
1999-07-01  0:00 ` Richard Henderson
1999-07-01  0:00 ` Ian Lance Taylor
1999-07-01  0:00   ` mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).