.section .text
.global _start
_start:
nop
nop
jmp start_of_setup
nop
nop
nop
start_of_setup:
movl $42, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80
$ objdump -d hcode.o
hcode.o: file format elf32-i386
Disassembly of section .text:
00000000 <_start>:
0: 90 nop
1: 90 nop
2: eb 03 jmp 7
4: 90 nop
5: 90 nop
6: 90 nop
00000007 :
7: ba 2a 00 00 00 mov $0x2a,%edx
c: cd 80 int $0x80
e: b8 01 00 00 00 mov $0x1,%eax
13: bb 00 00 00 00 mov $0x0,%ebx
18: cd 80 int $0x80
.section .text
.global _start
_start:
nop
nop
.byte 0xeb
.byte start_of_setup-4
nop
nop
nop
start_of_setup:
movl $42, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |