X86_64 gas issue

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



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

_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!



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux