Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2011 09:12:19 -0700
From:      Artem Belevich <art@freebsd.org>
To:        Andrew Duane <aduane@juniper.net>
Cc:        "mips@freebsd.org" <mips@freebsd.org>
Subject:   Re: Trouble with dynamic executables
Message-ID:  <BANLkTimp7inXtFN2O_Pw9AZ_CA5nb9ecKQ@mail.gmail.com>
In-Reply-To: <AC6674AB7BC78549BB231821ABF7A9AEB52F19511B@EMBX01-WF.jnpr.net>
References:  <AC6674AB7BC78549BB231821ABF7A9AEB53018A09F@EMBX01-WF.jnpr.net> <BANLkTi=Jw=q5sUVs8-sEG09nSHwFbMFKjw@mail.gmail.com> <AC6674AB7BC78549BB231821ABF7A9AEB52F19511B@EMBX01-WF.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 15, 2011 at 5:26 AM, Andrew Duane <aduane@juniper.net> wrote:
> I'm assuming it's a change to "ld", but it could be one of the directive =
scripts. I spent yesterday combing changes to the tree, and looking for any=
 files that could have caused this. I came up empty, but then I'm not reall=
y sure what I'm looking for. Is there a toolchain person who might know? Th=
ere's a good person here at Juniper, but he's on California time....

Pass --verbose to linker and see what's in the linker script it uses.
I suspect the issue may be somewhere there.
You can then tweak the linker script, put .interp in the right place
and pass the new script to linker with -T.

That should get you by until proper toolchain fix is available.

--Artem

>
> --
> Andrew Duane =A0 =A0 =A0 =A0 =A0 =A0 Juniper Networks
> 978-589-0551 =A0 =A0 =A0 =A0 =A0 =A0 =A010 Technology Park Dr
> aduane@juniper.net =A0 =A0 =A0Westford, MA =A001886-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 tri=
ed 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 ol=
d 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 <aduane@juniper.net<mailto=
:aduane@juniper.net>> 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: =A0 =A0 =A0ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version =
1 (FreeBSD), for FreeBSD 9.0 (900035), statically linked, FreeBSD-style, no=
t stripped
>
> Dynamically linked /usr/bin/size:
>
> usr/bin/size: ELF 64-bit MSB executable, MIPS, MIPS64 rel2 version 1 (Fre=
eBSD), for FreeBSD 9.0 (900035), dynamically linked (uses shared libs), Fre=
eBSD-style, not stripped
>
> For now, I've sort of worked around this by editing close to 1000 Makefil=
es and making almost everything static. There must be a reason for this tho=
ugh. I've done a fresh update and rebuilt everything including the toolchai=
n. Is there something missing from my system? The loader itself? Libraries?=
 An ldscript file?
>
> --
>
> Andrew Duane =A0 =A0 =A0 =A0 =A0 =A0 Juniper Networks
> 978-589-0551<tel:978-589-0551> =A0 =A0 =A0 =A0 =A0 =A0 10 Technology Park=
 Dr
> aduane@juniper.net<mailto:aduane@juniper.net> =A0 =A0 =A0 Westford, MA =
=A001886-3418
>
> _______________________________________________
> freebsd-mips@freebsd.org<mailto: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<ma=
ilto:freebsd-mips-unsubscribe@freebsd.org>"
>
> _______________________________________________
> 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"
>



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