[GSOC 2014] Multiarch: runtime error

Philippe Ombredanne pombredanne at nexb.com
Tue Jul 1 00:09:52 UTC 2014


On Tue, Jul 1, 2014 at 1:34 AM, Edson Ticona <xcr33d at gmail.com> wrote:
> Hi
> I could convert i386 binary to x86_64 by using:
> objcopy -O elf64-x86-64 sigaltstack-i386.i sigaltstack-x86_64.i
> then, compiling goes fine like this:
> gcc -Wall -Wwrite-strings -g -O2   -o strace aio.o bjm.o block.o
> count.o desc.o fanotify.o file.o inotify.o io.o ioctl.o ioprio.o ipc.o
> kexec.o keyctl.o ldt.o loop.o mem.o mtd.o net.o pathtrace.o process.o
> ptp.o quota.o reboot.o resource.o scsi.o signal.o sigaltstack.o
> sigaltstack-x86_64.i sock.o strace.o stream.o syscall.o system.o
> term.o time.o util.o vsprintf.o
> However, I get a SIGSEGV on execution time. What could be causing it?

Let me ask a stupid question in return...

Why would you not compile the ,o directly as x86_64 instead?

Have you considered using qemu, a VM, lxc/docker for that?

--
Cordially
Philippe Ombredanne




More information about the Strace-devel mailing list