Date: Sun, 23 Mar 2014 11:30:40 -0700 From: Sean Bruno <sbruno@ignoranthack.me> To: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: readelf: Error: /usr/lib/libc.a: failed to skip archive symbol table Message-ID: <1395599440.67694.13.camel@powernoodle.corp.yahoo.com> In-Reply-To: <1395337352.7757.11.camel@powernoodle.corp.yahoo.com> References: <1395337352.7757.11.camel@powernoodle.corp.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-hSBBUd2JmtKsYkv/HbdJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Thu, 2014-03-20 at 10:42 -0700, Sean Bruno wrote: > I've built a 32bit mips world/chroot. If I use sson's qemu tree and his > kmod/binmissctl, I can enter the environment. =20 >=20 > Right now, I'm investigating why static compilation fails inside the > environment, which probably means I'm the first person to *ever* use the > tool chain natively on mips32. >=20 > Dynamic linking works just fine, but if I attempt to link -static, I get > a failure. readelf and other tools seem to be unable to parse the .a > files, but .so files are just fine. >=20 > This is all inside the qemu-mips environment, if I examine the files on > my amd64 machine, I never see these errors. I suspect some kind of > arch/endian issue, but it eludes me at the moment. Ideas? >=20 > # uname -a > FreeBSD powernoodle.corp.yahoo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #11 > r263173: Sat Mar 15 13:31:08 JST 2014 > sbruno@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE mips >=20 >=20 > # readelf -a /usr/lib/libz.a > readelf: Error: /usr/lib/libz.a: failed to skip archive symbol table >=20 This problem seems to be caused by a endian issue in qemu-mips. Ed Maste found the culprit and I've applied it here: https://github.com/seanbruno/qemu/commit/05ee8495804599b52a88eb36b13ea9c06b= 3207cd Which is my combined tracking branch for qemu and sson's bsd-user branch. I'm currently tracking an "illegal instruction" on exit issue that seems to happen on application exit causing a crash. sean --=-hSBBUd2JmtKsYkv/HbdJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJTLyhQAAoJEBkJRdwI6BaH3J4H/RNL68pRQzkijxTCGOBBAgWP i6zALOR7yR2lc9YKhJP8TRcTT/o16f8uq1yEhrVDtw7YUqVpp9/wDDSsAeoaQu3r HeLu7tuvegYJnCP9hwH5DAvuATaiF37dHxP7MSIzkkv7vOK5PzpwY942YzLqnA9k Zq5GdV2MOjNiXit5+8Uamzgb3EZXOHiEKrmcrH1hUrcFbXXaaHaXCoki8Qs/f77U pPXbUk0sygHSFmwM3sD85HZF44KkU0MMh79d4FX07b/WkpuVPxn2CZVGv+pS+vJk wmDYwGP/db4nGP2M2TnKSWHYYjGj9kIp4oP1imCNf6Gi9EhX/yg6c26zcvDh4/M= =HEof -----END PGP SIGNATURE----- --=-hSBBUd2JmtKsYkv/HbdJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1395599440.67694.13.camel>