restore use of .type in asm, but use modern @function (vs %function)

this seems to be necessary to make the linker accept the functions in
a shared library (perhaps to generate PLT entries?)

strictly speaking libc-internal asm should not need it. i might clean
that up later.
This commit is contained in:
Rich Felker
2011-06-14 23:15:08 -04:00
parent 836ba93d93
commit c7d19f9923
20 changed files with 29 additions and 0 deletions

View File

@ -1,10 +1,12 @@
.global __restore
.type __restore,@function
__restore:
popl %eax
movl $119, %eax
int $0x80
.global __restore_rt
.type __restore_rt,@function
__restore_rt:
movl $173, %eax
int $0x80

View File

@ -1,4 +1,5 @@
.global sigsetjmp
.type sigsetjmp,@function
sigsetjmp:
mov 4(%esp),%eax
mov 8(%esp),%ecx

View File

@ -1,5 +1,7 @@
.global __restore_rt
.global __restore
.type __restore_rt,@function
.type __restore,@function
__restore_rt:
__restore:
movl $15, %eax

View File

@ -1,5 +1,6 @@
/* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
.global sigsetjmp
.type sigsetjmp,@function
sigsetjmp:
andl %esi,%esi
movq %rsi,64(%rdi)