Port-mips archive

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

re: Running o32 code



coypu%SDF.ORG@localhost writes:
> 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?

you shouldn't need more than what is in
src/compat/mips64/o32/bsd.o32.mk:

COPTS+=         -mabi=32 -march=mips3
[ .. ]

if not, please let me know.  this worked last i tried.


.mrg.


Home | Main Index | Thread Index | Old Index