Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 1999 15:11:31 -0500 (EST)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        jdp@polstra.com
Cc:        committers@FreeBSD.ORG
Subject:   Re:  cvs commit: src/sys/kern imgact_elf.c
Message-ID:  <199902052011.PAA16695@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> In article <199902051636.LAA15502@lor.watermarkgroup.com>,
> Luoqi Chen  <luoqi@watermarkgroup.com> wrote:
> 
> > The problem is that the interpreter name in the svr4 elf brand
> > structure is *WRONG*, it should be /lib/ld.so.1, not /lib/libc.so.1
> > (svr4/svr4_sysvec.c).
> 
> Are you sure?  At least in x86 versions of SVR4, the dynamic linker
> was a part of libc.  And the System V Application Binary Interface
> specification says that libc is named "/usr/lib/libc.so.1".
> 
At least on the solaris 2.6 cd, /usr/bin/ls runs without problem after
I changed libc.so.1 to ld.so.1, and here's more evidence,

# strings ls | head
/usr/lib/ld.so.1	<-- normally .interp is the first section
getopt
_start
_mcount
calloc
atoi
getpwuid
_environ
stat64
_end

# ldd ./ls
./ls:
	libc.so.1 =>     /usr/lib/libc.so.1
	libdl.so.1 =>    /usr/lib/libdl.so.1

-lq

> John
> -- 
>   John Polstra                                               jdp@polstra.com
>   John D. Polstra & Co., Inc.                        Seattle, Washington USA
>   "Nobody ever went broke underestimating the taste of the American public."
>                                                             -- H. L. Mencken
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



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