# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
# <http://www.gnu.org/licenses/>.
+#include "auto-host.h"
# Support for allocating more stack space when using -fsplit-stack.
# When a function discovers that it needs more stack space, it will
# The amount of extra space we ask for. In general this has to be
# enough for the dynamic loader to find a symbol and for a signal
# handler to run.
-
+
#ifndef __x86_64__
#define BACKOFF (1024)
#else
cmpb $0x55,1(%eax)
je 2f
-3:
+3:
movl %eax,4(%esp) # Update return address.
popl %eax # Restore %eax and stack.
# This is the cleanup code called by the stack unwinder when unwinding
# through the code between .LEHB0 and .LEHE0 above.
-
+
.L1:
.cfi_restore_state
subl $16,%esp # Maintain 16 byte alignment.
# This is the cleanup code called by the stack unwinder when unwinding
# through the code between .LEHB0 and .LEHE0 above.
-
+
.L1:
.cfi_restore_state
subq $16,%rsp # Maintain 16 byte alignment.
# Make __stack_split_initialize a high priority constructor. FIXME:
# This is ELF specific.
+#if HAVE_INITFINI_ARRAY_SUPPORT
+ .section .init_array.00000,"aw",@progbits
+#else
.section .ctors.65535,"aw",@progbits
+#endif
#ifndef __LP64__
.align 4
# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
# <http://www.gnu.org/licenses/>.
+#include <auto-host.h>
+
#if _CALL_ELF == 2
.abiversion 2
#define PARAMS 32
# Make __stack_split_initialize a high priority constructor.
+#if HAVE_INITFINI_ARRAY_SUPPORT
+ .section .init_array.00000,"aw",@progbits
+#else
.section .ctors.65535,"aw",@progbits
+#endif
.p2align 3
.quad __stack_split_initialize
.quad __morestack_load_mmap
# also cover signal frame size.
#define BACKOFF 0x1000
+#include <auto-host.h>
+
# The __morestack function.
.global __morestack
# Make __stack_split_initialize a high priority constructor.
+#if HAVE_INITFINI_ARRAY_SUPPORT
+ .section .init_array.00000,"aw",@progbits
+#else
.section .ctors.65535,"aw",@progbits
+#endif
#ifndef __LP64__
.align 4