readelf: Error: /usr/lib/libc.a: failed to skip archive symbol table
Sean Bruno
sbruno at ignoranthack.me
Thu Mar 20 17:42:36 UTC 2014
I've built a 32bit mips world/chroot. If I use sson's qemu tree and his
kmod/binmissctl, I can enter the environment.
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 at 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
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20140320/0cb76c80/attachment.sig>
More information about the freebsd-hackers
mailing list