Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Sep 1998 08:46:34 -0700
From:      John Polstra <jdp@polstra.com>
To:        mike@smith.net.au
Cc:        current@FreeBSD.ORG
Subject:   Re: E-day problems: rtld-elf dlsym() broken? 
Message-ID:  <199809031546.IAA02245@austin.polstra.com>
In-Reply-To: <199809030104.BAA01259@word.smith.net.au>
References:  <199809030104.BAA01259@word.smith.net.au>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809031546.IAA02245>