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:
parent
5f5b1a5daa
commit
43ed5b3e56
4 changed files with 7 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue