From owner-freebsd-mips@FreeBSD.ORG Thu Apr 14 19:11:18 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 A16DF106566C for ; Thu, 14 Apr 2011 19:11:18 +0000 (UTC) (envelope-from bhanuprakashbodireddy@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 73B378FC15 for ; Thu, 14 Apr 2011 19:11:18 +0000 (UTC) Received: by pvg11 with SMTP id 11so946820pvg.13 for ; Thu, 14 Apr 2011 12:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MQOrbCCyQ6Jtbj/paxqvh1zoYsiOfB0AAsDhxmLZ65I=; b=UiRkqlZhWJphMPjyx1HNNz4JZRpqE7162xi+EWzOe2wSH6xQeldLa7YNfDgjpNOrOa 5JBrGfGTcUEOnQr6+violaAwmv1VWGQLzCD12lGObddplJogvjZbyMyWzbTMF08N4f+z MsbEOgOpLbnzx5gqyFVdQH+n3oSpiXnSXXpnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Fz6cFevEOiQAZNah9hX0gMVVEpxtgyBZiv6oz4jod6UB6tGzZ7HQSutkth0wDkN6Te q08pfr8eL7Q+1f9h/0d8FlGCqr40u86r09tuvZ+TnO3yukp9ESSTdKUI7bawD7UcVtSa qysJKc24nKyZtFPPwq9Vvb+e0iOPGQsEMaUvw= MIME-Version: 1.0 Received: by 10.142.249.34 with SMTP id w34mr326798wfh.301.1302808277605; Thu, 14 Apr 2011 12:11:17 -0700 (PDT) Received: by 10.142.215.11 with HTTP; Thu, 14 Apr 2011 12:11:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Apr 2011 12:11:17 -0700 Message-ID: From: bhanuprakash bodireddy To: Andrew Duane Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Thu, 14 Apr 2011 19:11:18 -0000 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 trunk. 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 > am still battling one *major* issue. Dynamically linked executables do not > work 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 > (FreeBSD), for FreeBSD 9.0 (900035), statically linked, FreeBSD-style, not > stripped > > Dynamically linked /usr/bin/size: > > usr/bin/size: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 > (FreeBSD), for FreeBSD 9.0 (900035), dynamically linked (uses shared libs), > FreeBSD-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 though. > I've done a fresh update and rebuilt everything including the toolchain. Is > there something missing from my system? The loader itself? Libraries? An > ldscript file? > > -- > > Andrew Duane Juniper Networks > 978-589-0551 10 Technology Park Dr > aduane@juniper.net Westford, MA 01886-3418 > > _______________________________________________ > 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" >