1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 12:03:41 +01:00

Add required assembler magic.

This commit is contained in:
Konstantin Belousov 2010-03-08 00:57:50 +02:00
parent 5f5b1a5daa
commit 43ed5b3e56
4 changed files with 7 additions and 8 deletions

View file

@ -78,6 +78,7 @@ _Ux86_64_getcontext:
xorq %rax, %rax xorq %rax, %rax
retq retq
.size _Ux86_64_getcontext, . - _Ux86_64_getcontext
/* We do not need executable stack. */ /* We do not need executable stack. */
.section .note.GNU-stack,"",@progbits .section .note.GNU-stack,"",@progbits

View file

@ -31,7 +31,5 @@ _UI_longjmp_cont:
mov %rdx, %rax /* set up return-value */ mov %rdx, %rax /* set up return-value */
retq retq
.size _UI_longjmp_cont, .-_UI_longjmp_cont .size _UI_longjmp_cont, .-_UI_longjmp_cont
#ifdef __linux__
/* We do not need executable stack. */ /* We do not need executable stack. */
.section .note.GNU-stack,"",@progbits .section .note.GNU-stack,"",@progbits
#endif

View file

@ -33,7 +33,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
*/ */
.global _Ux86_64_setcontext .global _Ux86_64_setcontext
.type _Ux86_64_setcontext, @function
_Ux86_64_setcontext: _Ux86_64_setcontext:
/* restore fp state */ /* restore fp state */
@ -75,7 +76,7 @@ _Ux86_64_setcontext:
mov UC_MCONTEXT_GREGS_RDI(%rdi),%rdi mov UC_MCONTEXT_GREGS_RDI(%rdi),%rdi
retq retq
#ifdef __linux__ .size _Ux86_64_setcontext, . - _Ux86_64_setcontext
/* We do not need executable stack. */ /* We do not need executable stack. */
.section .note.GNU-stack,"",@progbits .section .note.GNU-stack,"",@progbits
#endif

View file

@ -24,10 +24,9 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
.globl _UI_siglongjmp_cont .globl _UI_siglongjmp_cont
.type _ui_siglongjmp_cont, @function
_UI_siglongjmp_cont: _UI_siglongjmp_cont:
retq retq
#ifdef __linux__ .size _UI_siglongjmp_cont, . - _UI_siglongjmp_cont
/* We do not need executable stack. */ /* We do not need executable stack. */
.section .note.GNU-stack,"",@progbits .section .note.GNU-stack,"",@progbits
#endif