32-bit FreeBSD binary on amd64

Mikhail Teterin mi+mill at aldan.algebra.com
Mon Jan 7 11:44:09 PST 2008


Hello!

I'm struggling with a 32-bit FreeBSD executable, which is identified as:

ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically 
linked (uses shared libs), stripped

Unfortunately, the executable would not run:

 /libexec/ld-elf.so.1: /lib/libm.so.4: unsupported file layout

I don't understand, why it is trying to use the 64-bit /lib/libm.so.4 instead 
of the readily available /usr/lib32/libm.so.4 ? Other 32-bit binaries have no 
problems on this same machine...

Was it not linked correctly? Is there a way to correct it? brandelf-ing did 
not help, for example...

Thanks!

 -mi


More information about the freebsd-questions mailing list