mirror of
https://github.com/fluencelabs/musl
synced 2025-07-01 23:52:02 +00:00
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:
@ -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
|
||||
|
@ -1,4 +1,5 @@
|
||||
.global sigsetjmp
|
||||
.type sigsetjmp,@function
|
||||
sigsetjmp:
|
||||
mov 4(%esp),%eax
|
||||
mov 8(%esp),%ecx
|
||||
|
@ -1,5 +1,7 @@
|
||||
.global __restore_rt
|
||||
.global __restore
|
||||
.type __restore_rt,@function
|
||||
.type __restore,@function
|
||||
__restore_rt:
|
||||
__restore:
|
||||
movl $15, %eax
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user