From owner-freebsd-hackers Tue Oct 3 6:24:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rccr1.rccr.cremona.it (rccr1.rccr.cremona.it [194.20.53.49]) by hub.freebsd.org (Postfix) with ESMTP id 8C93A37B503 for ; Tue, 3 Oct 2000 06:24:20 -0700 (PDT) Received: from mailman.endymion.com (rccr1.rccr.cremona.it [194.20.53.49] (may be forged)) by rccr1.rccr.cremona.it (8.9.3/8.9.3) with SMTP id PAA21704 for ; Tue, 3 Oct 2000 15:24:32 +0200 Message-Id: <200010031324.PAA21704@rccr1.rccr.cremona.it> To: freebsd-hackers@FreeBSD.org From: mirko.viviani@rccr.cremona.it Subject: dlopen() & objc initializer... Date: Tue, 3 Oct 2000 15:24:33 +0000 X-Mailer: Endymion MailMan Standard Edition v3.0.2 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ciao! I have an ObjC shared object compiled in this way: gcc -shared -rdynamic -o Bundle BreakTest.o SetTestCase.o -lSenFoundation -lSenTestingKit When I load this object with dlopen() the __objc_exec_class() initializer of the libraries's classes are called first than the objc initializers of the bundle shared objects (BreakTest.o and SetTestCase.o). Why ? Is it possible to tell the dynamic loader to call the BreakTest/SetTestCase objc initializer before the libs initializers ? When I open an handle with dlopen() is possible to get the executable names/paths of the libs linked to it ? Is there in elf something like the __CTOR_LIST__ ? With this example is possible to know in which libs a particular symbol resides ? Thanks in advance. --- Bye, Mirko (NeXTmail, MIME) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message