comparison dyncall/dyncall_call_arm32_thumb_gas.s @ 27:523c45dfa8fb

- refactored arm calling conventions' callvm code, so that the code that keeps the caller from overwriting the return value on some platforms also works on OpenBSD (before we casted the function pointer to have long long as return type, to hint the caller that there is one, but that triggers an intentional SIGABRT on OpenBSD for security reasons; now the decl reflects this, directly)
author cslag
date Tue, 15 Sep 2015 12:48:52 +0200
parents 3e629dc19168
children 00dd15cc5c87
comparison
equal deleted inserted replaced
26:32e397e1674c 27:523c45dfa8fb
81 81
82 /* Epilog. */ 82 /* Epilog. */
83 mov %r13, %r7 /* Reset stack ptr. */ 83 mov %r13, %r7 /* Reset stack ptr. */
84 pop {%r4-%r7, %r15} /* Restore permanent registers and program counter. (Force a stay in THUMB in ARMv4, whether ARMv5 can return in ARM or THUMB depending on the bit 0. */ 84 pop {%r4-%r7, %r15} /* Restore permanent registers and program counter. (Force a stay in THUMB in ARMv4, whether ARMv5 can return in ARM or THUMB depending on the bit 0. */
85 85
86
87
88 /* Internally used to avoid compiler overwriting r0 and r1 in call stub */
89 .globl dcCall_arm32_thumb_word
90
91 .thumb_func
92 dcCall_arm32_thumb_word:
93 b dcCall_arm32_thumb
94
95
96 .globl dcCall_arm32_thumb_dword
97
98 .thumb_func
99 dcCall_arm32_thumb_dword:
100 b dcCall_arm32_thumb
101