Date: Thu, 20 Mar 2014 10:42:32 -0700 From: Sean Bruno <sbruno@ignoranthack.me> To: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: readelf: Error: /usr/lib/libc.a: failed to skip archive symbol table Message-ID: <1395337352.7757.11.camel@powernoodle.corp.yahoo.com>
next in thread | raw e-mail | index | archive | help
--=-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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1395337352.7757.11.camel>