aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc64/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc64/start.S')
-rw-r--r--sysdeps/sparc/sparc64/start.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/start.S b/sysdeps/sparc/sparc64/start.S
index c9c25c2..08e1e77 100644
--- a/sysdeps/sparc/sparc64/start.S
+++ b/sysdeps/sparc/sparc64/start.S
@@ -74,6 +74,10 @@ _start:
be NULL. */
mov %g1, %o5
+ /* Provide the highest stack address to update the __libc_stack_end (used
+ to enable executable stacks if required). */
+ stx %sp, [%sp+STACK_BIAS+22*8]
+
/* Let libc do the rest of the initialization, and call main. */
call __libc_start_main
nop