From owner-freebsd-mips@FreeBSD.ORG Fri Apr 15 12:41:04 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 49955106567A for ; Fri, 15 Apr 2011 12:41:04 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mx1.freebsd.org (Postfix) with ESMTP id A4AB08FC1C for ; Fri, 15 Apr 2011 12:41:01 +0000 (UTC) Received: from P-EMHUB01-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKTag83HPfKKpBdvDc55Y25DAkt0gqBINz@postini.com; Fri, 15 Apr 2011 05:41:03 PDT Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB01-HQ.jnpr.net (172.24.192.35) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 15 Apr 2011 05:25:21 -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; Fri, 15 Apr 2011 08:27:18 -0400 From: Andrew Duane To: bhanuprakash bodireddy Date: Fri, 15 Apr 2011 08:26:01 -0400 Thread-Topic: Trouble with dynamic executables Thread-Index: Acv6170Ywwx7iLTwQuyRMcNL1ZtJagAkIr0O Message-ID: References: , In-Reply-To: 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: "mips@freebsd.org" Subject: RE: 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: Fri, 15 Apr 2011 12:41:04 -0000 I'm assuming it's a change to "ld", but it could be one of the directive sc= ripts. I spent yesterday combing changes to the tree, and looking for any f= iles that could have caused this. I came up empty, but then I'm not really = sure what I'm looking for. Is there a toolchain person who might know? Ther= e's a good person here at Juniper, but he's on California time.... -- Andrew Duane Juniper Networks 978-589-0551 10 Technology Park Dr aduane@juniper.net Westford, MA 01886-3418 ________________________________________ From: bhanuprakash bodireddy [bhanuprakashbodireddy@gmail.com] Sent: Thursday, April 14, 2011 3:11 PM To: Andrew Duane Cc: mips@freebsd.org Subject: Re: Trouble with dynamic executables I had a similar issue the other day when i did a fresh build world. I tried= it to reproduce the issue you reported and its pretty much there in the tr= unk. But the last buildworld has no such issues and am still using the same old = fs image to boot on to the octeon boards. I believe, some recent fixes should have caused this. Thanks, Bhanu Prakash. On Thu, Apr 14, 2011 at 11:01 AM, Andrew Duane > wrote: 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-341= 8 _______________________________________________ freebsd-mips@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"