diff options
author | jdp <jdp@FreeBSD.org> | 1997-01-11 23:59:34 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1997-01-11 23:59:34 +0000 |
commit | db2ad2c9acc73439ebdfa3b14d35876ceac1b60e (patch) | |
tree | 54d6e5662141eb2cb7b99c5a4cd2fb035d87559b /lib/csu/i386 | |
parent | 36f0550d9666dbab1f26b11a9c504f837e78b5e9 (diff) | |
download | FreeBSD-src-db2ad2c9acc73439ebdfa3b14d35876ceac1b60e.zip FreeBSD-src-db2ad2c9acc73439ebdfa3b14d35876ceac1b60e.tar.gz |
Set the "crt_ldso" member of the crt-to-ld.so interface structure. This
was apparently overlooked at the time the member was added. Its absence
causes some error messages from the dynamic linker to begin with
"(null):" instead of with the pathname of the dynamic linker as they
should.
I am also adding a work-around to the dynamic linker, to cope with
legacy binaries that were built with older versions of crt0.
Diffstat (limited to 'lib/csu/i386')
-rw-r--r-- | lib/csu/i386/crt0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c index 6ff4f0b..20123ec 100644 --- a/lib/csu/i386/crt0.c +++ b/lib/csu/i386/crt0.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: crt0.c,v 1.25 1996/10/06 03:19:26 steve Exp $ + * $Id: crt0.c,v 1.26 1996/12/28 17:10:52 peter Exp $ */ #include <sys/param.h> @@ -250,6 +250,7 @@ __do_dynamic_link () crt.crt_ep = environ; crt.crt_bp = (caddr_t)_callmain; crt.crt_prog = __progname; + crt.crt_ldso = ldso; crt.crt_ldentry = NULL; entry = (int (*)())(crt.crt_ba + sizeof hdr); |