소스 검색

* __error in cprt0.as

git-svn-id: trunk@29477 -
marco 10 년 전
부모
커밋
bc35a48d65
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      rtl/dragonfly/x86_64/cprt0.as

+ 16 - 0
rtl/dragonfly/x86_64/cprt0.as

@@ -120,6 +120,22 @@ _start:
 	call	exit
 .LFE5:
 	.size	_start, .-_start
+.weak __error
+.type	__error, @function
+__error:
+.LFB9:
+	
+	pushq	%rbp
+	movq	%rsp, %rbp
+	movq	%fs:0, %rdx
+	movq	errno@gottpoff(%rip), %rax
+	addq	%rdx, %rax
+	popq	%rbp
+	ret
+	
+.LFE9:
+	.size	__error, .-__error
+
 .bss
         .type   __stkptr,@object
         .size   __stkptr,8