From owner-freebsd-hackers Fri Oct 16 11:48:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA15280 for freebsd-hackers-outgoing; Fri, 16 Oct 1998 11:48:25 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from coleridge.kublai.com (coleridge.kublai.com [207.96.1.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA15267 for ; Fri, 16 Oct 1998 11:48:13 -0700 (PDT) (envelope-from shmit@coleridge.kublai.com) Received: (from shmit@localhost) by coleridge.kublai.com (8.9.1/8.9.1) id OAA23469; Fri, 16 Oct 1998 14:47:40 -0400 (EDT) Message-ID: <19981016144738.H19804@kublai.com> Date: Fri, 16 Oct 1998 14:47:39 -0400 From: Brian Cully To: Mike Smith Cc: hackers@FreeBSD.ORG Subject: Re: ELF object file aggregation Reply-To: shmit@kublai.com References: <19981009173454.Q529@kublai.com> <199810092326.QAA01533@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199810092326.QAA01533@dingo.cdrom.com>; from Mike Smith on Fri, Oct 09, 1998 at 04:26:27PM -0700 X-Sender: If your mailer pays attention to this, it's broken. X-PGP-Info: finger shmit@kublai.com for my public key. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Oct 09, 1998 at 04:26:27PM -0700, Mike Smith wrote: > > I'm working on a project that requires the functionality of dlopen() > > and friends, but I want to link it statically. I was thinking that > > I could do this by munging together various ELF files at run-time > > and scarfing symbols (the way kldload does things, if I'm not > > mistaken). > > Do you want it to be statically linked, or do you want it to not have > external shared library dependancies? There's a big difference. 8) I don't want external shared library dependencies. Basically, I'm working on a replacement for /etc/rc, so I can't rely on /usr/libexec/ld-elf.so or any of the libs in /usr/lib. It seems to me like run-time object file aggregation was the optimal solution. -bjc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message