remove all .size and .type directives for functions from the asm
these are useless and have caused problems for users trying to build with non-gnu tools like tcc's assembler.
This commit is contained in:
parent
76100a724e
commit
1e4f1cf154
18 changed files with 0 additions and 52 deletions
|
|
@ -1,7 +1,5 @@
|
|||
.global _longjmp
|
||||
.global longjmp
|
||||
.type _longjmp,%function
|
||||
.type longjmp,%function
|
||||
_longjmp:
|
||||
longjmp:
|
||||
mov 4(%esp),%edx
|
||||
|
|
@ -18,5 +16,3 @@ longjmp:
|
|||
mov %ecx,%esp
|
||||
mov 20(%edx),%ecx
|
||||
jmp *%ecx
|
||||
.size _longjmp,.-_longjmp
|
||||
.size longjmp,.-longjmp
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
.global __setjmp
|
||||
.global _setjmp
|
||||
.global setjmp
|
||||
.type __setjmp,%function
|
||||
.type _setjmp,%function
|
||||
.type setjmp,%function
|
||||
__setjmp:
|
||||
_setjmp:
|
||||
setjmp:
|
||||
|
|
@ -18,6 +15,3 @@ setjmp:
|
|||
mov %ecx, 20(%eax)
|
||||
xor %eax, %eax
|
||||
ret
|
||||
.size __setjmp,.-__setjmp
|
||||
.size _setjmp,.-_setjmp
|
||||
.size setjmp,.-setjmp
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
/* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
|
||||
.global _longjmp
|
||||
.global longjmp
|
||||
.type _longjmp,%function
|
||||
.type longjmp,%function
|
||||
_longjmp:
|
||||
longjmp:
|
||||
mov %rsi,%rax /* val will be longjmp return */
|
||||
|
|
@ -20,5 +18,3 @@ longjmp:
|
|||
mov %rdx,%rsp
|
||||
mov 56(%rdi),%rdx /* this is the instruction pointer */
|
||||
jmp *%rdx /* goto saved address without altering rsp */
|
||||
.size _longjmp,.-_longjmp
|
||||
.size longjmp,.-longjmp
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
.global __setjmp
|
||||
.global _setjmp
|
||||
.global setjmp
|
||||
.type __setjmp,%function
|
||||
.type _setjmp,%function
|
||||
.type setjmp,%function
|
||||
__setjmp:
|
||||
_setjmp:
|
||||
setjmp:
|
||||
|
|
@ -20,6 +17,3 @@ setjmp:
|
|||
mov %rdx,56(%rdi)
|
||||
xor %rax,%rax /* always return 0 */
|
||||
ret
|
||||
.size __setjmp,.-__setjmp
|
||||
.size _setjmp,.-_setjmp
|
||||
.size setjmp,.-setjmp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue