From owner-freebsd-hackers Tue Jul 25 13:30:13 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id 759EB37B896 for ; Tue, 25 Jul 2000 13:30:09 -0700 (PDT) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id 6AE622DC0A; Tue, 25 Jul 2000 22:35:17 +0200 (CEST) Received: by mx.webgiro.com (Postfix, from userid 1001) id 7E9727817; Tue, 25 Jul 2000 22:26:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 7937E10E17; Tue, 25 Jul 2000 22:26:53 +0200 (CEST) Date: Tue, 25 Jul 2000 22:26:51 +0200 (CEST) From: Andrzej Bialecki To: Daniel O'Connor Cc: Raymond Wiker , freebsd-hackers@freebsd.org Subject: RE: dlopen() and friends from a statically-linked binary? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 22 Jul 2000, Daniel O'Connor wrote: > > On 20-Jul-00 Raymond Wiker wrote: > > Is it possible, at all, to use dlopen etc from a > > statically-linked executable? My experiments with FreeBSD-4.0 (see > > below) indicate that it's not possible. > > You can't do it from a statically linked binary, however you can create a > dynamic executable with no external unresolved references.. I forget how though > :-/ The same way it's done with the kernel nowadays.. Look into your /sys/compile/WHATEVER/Makefile, and hack.c file there. Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message