|
From: Ivan N. <in...@fa...> - 2006-01-15 17:26:59
|
Hi,
My assembly program on AMD64 does not work in Valgrind (using the latest
code from svn).
It seems even the tiniest shell of assembly program gives the same
error. Any ideas?
Thank you for any help,
Ivan
Here is the assembly code:
#################################################################
.text
.global _start
_start:
movl $0,%ebx
movl $1,%eax
int $0x80
#################################################################
It is compiled with:
as -o hw.o hw.s
ld -s -o hw.optim hw.o
Valgrind gives the following message
vex amd64->IR: unhandled instruction bytes: 0xCD 0x80 0x0 0x0
==20956== Your program just tried to execute an instruction that Valgrind
==20956== did not recognise. ......
==20956== Process terminating with default action of signal 4 (SIGILL):
dumping core
==20956== Illegal opcode at address 0x4000F2
==20956== at 0x4000F2: (within hw.optim)
uname -a
Linux gibraltar 2.6.14-gentoo-r2 #3 Fri Jan 13 20:49:29 GMT 2006 x86_64
AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
|