Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 1998 07:52:41 -0700 (PDT)
From:      Jin Guojun (FTG staff) <jin@george.lbl.gov>
To:        freebsd-bugs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG, lada@pc8811.gud.siemens.at
Subject:   RE: ld for loading dynamic library changed in 3.0-RELEASE?
Message-ID:  <199810231452.HAA04643@george.lbl.gov>

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

Any other Un*x systems that support the shared libraries will not have such
behavior, including FreeBSD itself. This is elf/ld issue.

> 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

Again, this is elf/ld issue. As Mike Smith, thanks Mike, pointed out,
by setting OBJFORMAT to aout, the compiling and linking systems will use aout/*
instead elf/*, and problem goes away. This is a temp solution. As we know,
the 3.0 kernel also uses aout format. In long run, if FreeBSD will move to
use elf format in system wide range, the elf/ld behavor has to be corrected.

	-Jin

P.S.	By the way, there is another problem was found in 3.0 RELEASE,
	the aout/ld complains that the libX11.a has bag magic, even
	the file and objformat all confirmed the libX11.a is in aout format.

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?199810231452.HAA04643>