This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
shared library, init
- To: <gcc at gcc dot gnu dot org>
- Subject: shared library, init
- From: "Roger Wells" <ROGER dot K dot WELLS at saic dot com>
- Date: Wed, 19 Sep 2001 08:04:28 -0400
- Organization: SAIC
When I use the linker flag, -Wl,-init, the linker complains that my _init()
conflicts with one in crti.o. When I give the -init flag the name of a
function that I supply it is ignored. Can someone advise me of the correct
syntax to establish a shared library initialization (& termination)
function.
Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger@mtg.saic.com