From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 20 17:42:36 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D2358DB for ; Thu, 20 Mar 2014 17:42:36 +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 5B01678E for ; Thu, 20 Mar 2014 17:42:36 +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 380EF192B1B for ; Thu, 20 Mar 2014 18:08:25 +0000 (UTC) Subject: readelf: Error: /usr/lib/libc.a: failed to skip archive symbol table From: Sean Bruno To: "freebsd-hackers@freebsd.org" Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-hjv9M9NdLzp/QIIF4GzY" Date: Thu, 20 Mar 2014 10:42:32 -0700 Message-ID: <1395337352.7757.11.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: Thu, 20 Mar 2014 17:42:36 -0000 --=-hjv9M9NdLzp/QIIF4GzY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 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. 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. 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? # 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 # readelf -a /usr/lib/libz.a readelf: Error: /usr/lib/libz.a: failed to skip archive symbol table # readelf -a /usr/lib/libz.so ELF Header: Magic: 7f 45 4c 46 01 02 01 09 00 00 00 00 00 00 00 00=20 Class: ELF32 Data: 2's complement, big endian Version: 1 (current) OS/ABI: UNIX - FreeBSD ABI Version: 0 Type: DYN (Shared object file) Machine: MIPS R3000 Version: 0x1 Entry point address: 0x1450 Start of program headers: 52 (bytes into file) Start of section headers: 89788 (bytes into file) Flags: 0x20001107, noreorder, pic, cpic, 32bitmode, o32, mips3 Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 5 Size of section headers: 40 (bytes) Number of section headers: 28 Section header string table index: 27 --=-hjv9M9NdLzp/QIIF4GzY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJTKyiAAAoJEBkJRdwI6BaHEngIAI7Njtk6JzfVMyp0E9b23bkY QPVOuzGc9tYsKrrZHgVRfKYgMMal3hWAplNbKgtaC+aGkM/D1VA2Te2Ju36zfnIA wlFbeI8Csnx8x88u7V/qwvUBSQais3w2dmxUr4N57URXpvKWmSFU2QkUwZUqWyx0 trGgxq0F32wbjMvSJZFIBh+mlqt7aKRDLnP9H7cfVmGKvETE6hGsi9I2ZEDIZgWq SRzla9aDG4TXQAPinCdOlIR8aATz5LPgoFB8+MPBQbZ4jMe3v/Ww0sX8QVNRRRz0 CswFjpsTdctHKxwbmcMQDwIqx7km5vfLzikpmai/Yze81tOHi1XK26LzfK+hp2I= =YMcy -----END PGP SIGNATURE----- --=-hjv9M9NdLzp/QIIF4GzY--