From owner-freebsd-hackers Fri Oct 23 00:31:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA02752 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 00:31:43 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA02735; Fri, 23 Oct 1998 00:31:39 -0700 (PDT) (envelope-from lada@pc8811.gud.siemens.at) Received: from scesie04.sie.siemens.at (root@firix-hme0 [10.1.140.1]) by zwei.siemens.at with ESMTP id JAA00267; Fri, 23 Oct 1998 09:30:32 +0200 (MET DST) Received: from scegud01.gud.siemens.at (scegud01.gud.siemens.at [195.3.240.30]) by scesie04.sie.siemens.at () with ESMTP id JAA07851; Fri, 23 Oct 1998 09:30:29 +0200 (METDST) Received: from pc8811.gud.siemens.at (pc8811.gud.siemens.at [195.3.22.159]) by scegud01.gud.siemens.at (8.8.8/8.8.5) with ESMTP id JAA17370; Fri, 23 Oct 1998 09:30:28 +0200 (METDST) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199810221745.KAA29913@george.lbl.gov> Date: Fri, 23 Oct 1998 09:30:56 +0200 (CEST) Organization: Siemens Austria AG From: Marino Ladavac To: (FTG staff) , freebsd-hackers@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: RE: ld for loading dynamic library changed in 3.0-RELEASE? Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 22-Oct-98 FTG staff wrote: > > It seems that ld in 3.0-RELEASE changed its behaving. > In loading a dynamic library, it loads entire library regardless > if objects are used or not. I do not know if this is a bug or intended > goal, but it does not make sense to build libraries at this point. This ld.so behavior is consistent with ld.so behavior on any other U*x system that I know and which supports the shared libraries. dlopen/dlsym do indeed map all the entry points to the library. But please note that the library itself is only mapped into the address space, and the mapping remains the same for all processes which use the same library. Thus, the space is not wasted. Furthermore, only the code pages actually referenced will be pulled into core. > > Would some one please look into this issue? If I understand you correctly, there is no issue to look at. AFAIK, this is an ELF requirement. /Marino > > Thanks, > > -Jin > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message ---------------------------------- Marino Ladavac Date: 23-Oct-98 Time: 09:25:49 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message