From owner-freebsd-current Thu Sep 3 08:48:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA03369 for freebsd-current-outgoing; Thu, 3 Sep 1998 08:48:14 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA03355 for ; Thu, 3 Sep 1998 08:48:08 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id IAA02245; Thu, 3 Sep 1998 08:46:34 -0700 (PDT) (envelope-from jdp) Message-Id: <199809031546.IAA02245@austin.polstra.com> To: mike@smith.net.au Subject: Re: E-day problems: rtld-elf dlsym() broken? In-Reply-To: <199809030104.BAA01259@word.smith.net.au> References: <199809030104.BAA01259@word.smith.net.au> Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Thu, 03 Sep 1998 08:46:34 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > You have to link against at least one shared lib to get the _DYNAMIC goop > > for rtld. > > Ick, that makes too much sense. 8( It's ld that creates all that stuff > too(?), so you might be hard-pressed to fake it up. For what it's worth, you can easily make a shared library to link in that uses minimal disk space (smaller than a fragment): blake$ > tiny.c blake$ cc -fpic -O -c -o tiny.so tiny.c blake$ cc -shared -nostdlib -o libtiny.so.1 -Wl,-soname,libtiny.so.1 tiny.so blake$ ls -l libtiny.so.1 -rwxr-xr-x 1 jdp jdp 1585 Sep 3 08:43 libtiny.so.1 blake$ file libtiny.so.1 libtiny.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message