Browse Source

* __error in cprt0.as

git-svn-id: trunk@29477 -
marco 10 years ago
parent
commit
bc35a48d65
1 changed files with 16 additions and 0 deletions
  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