Date: Thu, 14 Apr 2011 12:11:17 -0700 From: bhanuprakash bodireddy <bhanuprakashbodireddy@gmail.com> To: Andrew Duane <aduane@juniper.net> Cc: "mips@freebsd.org" <mips@freebsd.org> Subject: Re: Trouble with dynamic executables Message-ID: <BANLkTi=Jw=q5sUVs8-sEG09nSHwFbMFKjw@mail.gmail.com> In-Reply-To: <AC6674AB7BC78549BB231821ABF7A9AEB53018A09F@EMBX01-WF.jnpr.net> References: <AC6674AB7BC78549BB231821ABF7A9AEB53018A09F@EMBX01-WF.jnpr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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: 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=Jw=q5sUVs8-sEG09nSHwFbMFKjw>