Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 22:26:51 +0200 (CEST)
From:      Andrzej Bialecki <abial@webgiro.com>
To:        Daniel O'Connor <darius@dons.net.au>
Cc:        Raymond Wiker <Raymond.Wiker@fast.no>, freebsd-hackers@freebsd.org
Subject:   RE: dlopen() and friends from a statically-linked binary?
Message-ID:  <Pine.BSF.4.20.0007252224200.44508-100000@mx.webgiro.com>
In-Reply-To: <XFMail.000722015322.darius@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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

//  <abial@webgiro.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0007252224200.44508-100000>