[arch-general] X86_64 gas issue

宋文武 song at
Fri Mar 11 20:47:20 EST 2011

Hi, I want to learn asm, by follow the book 'Programming from the Ground Up'.
But I failed on the first example~

.section .data
.section .text
.globl _start

	movl $1, %eax
	movl $0, %ebx
	int $0x80

After as and ld, I only get Segmentation fault. I'm using Archlinux X86_64,
binutils-2.21-4, with my custom kernel just to run 64bit code.
Is there somethong wrong, or any book to learn x86_64 assemble?

Thanks all!

More information about the arch-general mailing list