From am@amsoft.ru  Thu Sep  4 13:55:40 1997
Received: from amsoft.ru (amsoft.ru [194.87.86.241])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA22424
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 4 Sep 1997 13:55:18 -0700 (PDT)
Received: (from am@localhost) by amsoft.ru (8.8.5/amsoft/1.0)
	id AAA01617 ; Fri, 5 Sep 1997 00:44:14 +0400 (MSD)
Message-Id: <199709042044.AAA01617@amsoft.ru>
Date: Fri, 5 Sep 1997 00:44:14 +0400 (MSD)
From: Andrew Maltsev <am@amsoft.ru>
Reply-To: am@amsoft.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: dlopen is not available from static executables
X-Send-Pr-Version: 3.2

>Number:         4468
>Category:       misc
>Synopsis:       dlopen is not available from static executables
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jdp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep  4 14:00:00 PDT 1997
>Closed-Date:    Tue Oct 3 20:53:18 PDT 2000
>Last-Modified:  Tue Oct 03 20:59:13 PDT 2000
>Originator:     Andrew Maltsev
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
AM'SOFT
>Environment:

	I only checked this in 2.2 and 2.2.1 - sorry, if it is fixed already.

>Description:

 dlopen/.. programmatic interface to dynamic loader is not available
 when executable is to be statically linked. So it is not possible to
 add a shared object (plug-in for example) to an executable required to
 be static.

>How-To-Repeat:

 Obvious

>Fix:
	
 I think it may be solved by moving a part of ld.so loader into separate
 .a-style library.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jdp 
Responsible-Changed-By: kris 
Responsible-Changed-When: Mon Sep 4 16:26:25 PDT 2000 
Responsible-Changed-Why:  
jdp is Mr dlopen() 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4468 
State-Changed-From-To: open->closed 
State-Changed-By: jdp 
State-Changed-When: Tue Oct 3 20:53:18 PDT 2000 
State-Changed-Why:  
There are many difficulties associated with supporting dlopen from 
statically-linked programs.  Most operating systems do not support 
it.  Solaris doesn't; Unixware doesn't; OSF-1 doesn't.  Some 
versions of Linux apparently support it, but that is the only one I 
know of.  I don't have any plans to implement this.  However, if 
somebody works through the difficulties and provides me with a set 
of patches, I'll be happy to look at them and incorporate them into 
the system if possible. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4468 
>Unformatted:
