From owner-freebsd-current Wed Jan 6 06:28:14 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21430 for freebsd-current-outgoing; Wed, 6 Jan 1999 06:28:14 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from postoffice.aeonflux.net (postoffice.aeonflux.net [208.139.254.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA21425 for ; Wed, 6 Jan 1999 06:28:13 -0800 (PST) (envelope-from hg@ParView.com) Received: (from uucp@localhost) by postoffice.aeonflux.net (8.8.8/8.8.7/PCS9711a) with UUCP id JAA00103; Wed, 6 Jan 1999 09:27:11 -0500 (EST) Received: (from hg@localhost) by ParView.com (8.9.1/8.8.8/n2wx) id JAA09861; Wed, 6 Jan 1999 09:25:25 -0500 (EST) (envelope-from hg) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <13971.29268.338874.138338@slice.parview.com> Date: Wed, 6 Jan 1999 09:25:24 -0500 (EST) From: hgoldste@bbs.mpcs.com To: John Polstra Cc: current@FreeBSD.ORG Subject: Re: ELF interpreter /usr/lib/libc.so.1 not found (on 3.0-CURRENT 12/20/98) Newsgroups: polstra.freebsd.hackers In-Reply-To: <199901060304.TAA36807@vashon.polstra.com> References: <13962.6777.503181.771874@penny.south.mpcs.com> <199901060304.TAA36807@vashon.polstra.com> X-Mailer: VM 6.56 under Emacs 19.34.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra writes: > In article <13962.6777.503181.771874@penny.south.mpcs.com>, > Howard Goldstein wrote: > > slice:~/src/develop$ ./v2show > > ELF interpreter /usr/lib/libc.so.1 not found > > Abort trap > > Add "-dynamic-linker /usr/libexec/ld-elf.so.1" to your "ld" > command. The "ELF interpreter" is the dynamic linker that the > kernel is trying to load. Its pathname defaults (in the linker) to > "/usr/lib/libc.so.1", which is the old SVR4 version. This must be > overridden on the linker command line. "cc" automatically does that. This probably accounts for some of the reason why I couldn't get an ld executable built anyway other than as a -Bstatic. Some of those init/end modules are also different (no surprise to you folks who do this all the time) > You really should try to use "cc" for linking, because there's lots > of non-obvious stuff that needs to go onto the command line for > "ld". Take some simple program "hello.c", and do this: > > cc -v hello.c Yow lots of extra stuff. Where are these overrides set in cc/gcc? > I don't understand why your masm/nasm problem would affect linking. They don't directly affect it. The problem was my failure to use cc as a frontend to the linker. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message