kernel은 2.4.4 입니다.
gnu 어셈블러는 버전이 2.10.90 입니다.
아래의 내용은 간단한 덧셈을 위해 어셈블러로 작성한 건데
as로 컴파일할때 문제가 생깁니다.
----------------------- 컴파일은 다음과 같습니다. --------
as --gstabs -o add.o add.s
add.s: Assembler messags:
add.s:34: Error: local label "0" (instance number 0 of a dollar label) is not defined
----------------------- add.s의 내용입니다. -------------
.data
a:
.byte 0x32
b:
.byte 0x31
c:
.byte 0
.text
.align 4
.global _start
_start:
_funcall:
pushl %ebp
movl %esp, %ebp
_add:
movb a, %al
addb b, %al
movb $0, %ah
movb %al, c
_exit:
movl $1, %eax
xorl %ebx, %ebx
int $0x80--사랑하는 사람을 보내며..