Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 1998 09:30:56 +0200 (CEST)
From:      Marino Ladavac <lada@pc8811.gud.siemens.at>
To:        (FTG staff) <jin@george.lbl.gov>, freebsd-hackers@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   RE: ld for loading dynamic library changed in 3.0-RELEASE?
Message-ID:  <XFMail.981023093056.lada@pc8811.gud.siemens.at>
In-Reply-To: <199810221745.KAA29913@george.lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help

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-bugs" in the body of the message



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