From owner-freebsd-hackers Sat Dec 6 22:45:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA19748 for hackers-outgoing; Sat, 6 Dec 1997 22:45:55 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from word.smith.net.au (ppp9.portal.net.au [202.12.71.109]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA19732; Sat, 6 Dec 1997 22:45:46 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id RAA00701; Sun, 7 Dec 1997 17:10:08 +1030 (CST) Message-Id: <199712070640.RAA00701@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Nate Williams cc: Terry Lambert , jkh@time.cdrom.com (Jordan K. Hubbard), mike@smith.net.au, hsu@FreeBSD.ORG, hackers@hub.freebsd.org Subject: Re: shared library with static Motif? In-reply-to: Your message of "Sat, 06 Dec 1997 16:17:06 PDT." <199712062317.QAA06878@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 07 Dec 1997 17:10:07 +1030 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > But, aside from legalities the real issue hasn't been answered. Is it > *technically* possible to link in a 'static' library into a 'shared' > library so that the end-user doesn't need a Motif library to get access > to the shared library? Fairly obviously, no. Shared libraries are built PIC, as their load address is not known (and may vary across different mappings of a given copy). Static libraries are fixed up at link time, as offsets in them are relative to their position in the executable, which is loaded at a known (fixed) address. mike