From owner-freebsd-mips@FreeBSD.ORG Thu Apr 14 18:03:10 2011 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCAE71065670 for ; Thu, 14 Apr 2011 18:03:10 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og119.obsmtp.com (exprod7og119.obsmtp.com [64.18.2.16]) by mx1.freebsd.org (Postfix) with ESMTP id 460F38FC1E for ; Thu, 14 Apr 2011 18:03:10 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob119.postini.com ([64.18.6.12]) with SMTP ID DSNKTac23SPXaIWvzt74pbFyr8rR9ooVrRiA@postini.com; Thu, 14 Apr 2011 11:03:10 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB02-HQ.jnpr.net (172.24.192.36) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 14 Apr 2011 10:59:13 -0700 Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Thu, 14 Apr 2011 14:01:09 -0400 From: Andrew Duane To: "mips@freebsd.org" Date: Thu, 14 Apr 2011 14:01:07 -0400 Thread-Topic: Trouble with dynamic executables Thread-Index: Acv6ze3+ZQjfoYPNTDahW+vBxs/4/g== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: Trouble with dynamic executables X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 18:03:10 -0000 I've pretty much completed my board bringup of an OCTEON based board, but a= m still battling one *major* issue. Dynamically linked executables do not w= ork at all. Any time I try to run one, I get "Exec format error" (ENOEXEC).= Sample output from file is: Statically linked /bin/cat: bin/cat: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 (FreeB= SD), for FreeBSD 9.0 (900035), statically linked, FreeBSD-style, not stripp= ed Dynamically linked /usr/bin/size: usr/bin/size: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 (FreeB= SD), for FreeBSD 9.0 (900035), dynamically linked (uses shared libs), FreeB= SD-style, not stripped For now, I've sort of worked around this by editing close to 1000 Makefiles= and making almost everything static. There must be a reason for this thoug= h. I've done a fresh update and rebuilt everything including the toolchain.= Is there something missing from my system? The loader itself? Libraries? A= n ldscript file? -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 =20