From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 23 18:30:42 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9A6B13D; Sun, 23 Mar 2014 18:30:42 +0000 (UTC) Received: from mail.ignoranthack.me (ujvl.x.rootbsd.net [199.102.79.106]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A521B7E5; Sun, 23 Mar 2014 18:30:42 +0000 (UTC) Received: from [192.168.1.228] (c-24-6-179-71.hsd1.ca.comcast.net [24.6.179.71]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 55A33192B5D; Sun, 23 Mar 2014 18:30:41 +0000 (UTC) Subject: Re: readelf: Error: /usr/lib/libc.a: failed to skip archive symbol table From: Sean Bruno To: "freebsd-hackers@freebsd.org" In-Reply-To: <1395337352.7757.11.camel@powernoodle.corp.yahoo.com> References: <1395337352.7757.11.camel@powernoodle.corp.yahoo.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-hSBBUd2JmtKsYkv/HbdJ" Date: Sun, 23 Mar 2014 11:30:40 -0700 Message-ID: <1395599440.67694.13.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2014 18:30:42 -0000 --=-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--