Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Running o32 code



Given that /usr/lib/o32 exists, I assume this is possible.

$ cc -mabi=32 -Wl,-rpath=/usr/lib/o32 asd.c
/var/tmp//ccMBoOmi.s: Assembler messages:
/var/tmp//ccMBoOmi.s: Warning: .gnu_attribute 4,3 requires `softfloat'
$ ldd a.out
a.out:
        -lc.12 => /usr/lib/o32/libc.so.12

(gdb) run
Starting program: /home/fly/a.out 

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x787df824 in strlcpy () from /usr/libexec/ld.elf_so
#2  0x00000000 in ?? ()
Backtrace stopped: frame did not save the PC

how can I use /usr/libexec/ld.elf_so-o32?

thx


Home | Main Index | Thread Index | Old Index