Skip to content
Snippets Groups Projects
Commit 603fb6a0 authored by Raymond Toy's avatar Raymond Toy
Browse files

Add RELOCATABLE_STACK_START to control stack spaces for linux.

When RELOCATABLE_STACK_START is defined, the control stack, binding
stack, and sigalt stack are located wherever mmap finds room for them.
parent 951611cf
No related branches found
No related tags found
No related merge requests found
# -*- Mode: makefile -*- # -*- Mode: makefile -*-
include Config.x86_common include Config.x86_common
CPPFLAGS += -m32 -D__NO_CTYPE -D_GNU_SOURCE CPPFLAGS += -m32 -D__NO_CTYPE -D_GNU_SOURCE -DRELOCATABLE_STACK_START
CFLAGS += -rdynamic -march=pentium4 -mfpmath=sse -mtune=generic CFLAGS += -rdynamic -march=pentium4 -mfpmath=sse -mtune=generic
UNDEFSYMPATTERN = -Xlinker -u -Xlinker & UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
......
...@@ -45,17 +45,17 @@ ...@@ -45,17 +45,17 @@
#define STATIC_SPACE_START (SpaceStart_TargetStatic) #define STATIC_SPACE_START (SpaceStart_TargetStatic)
#define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */ #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */
#if 0 #ifdef RELOCATABLE_STACK_START
#define BINDING_STACK_START (0x20000000) #define BINDING_STACK_START (0x20000000)
#endif #endif
#define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */ #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */
#if 0 #ifdef RELOCATABLE_STACK_START
#define CONTROL_STACK_START 0x38000000 #define CONTROL_STACK_START 0x38000000
#endif #endif
#define CONTROL_STACK_SIZE (0x07fff000 - 8192) #define CONTROL_STACK_SIZE (0x07fff000 - 8192)
#if 0 #ifdef RELOCATABLE_STACK_START
#define SIGNAL_STACK_START CONTROL_STACK_END #define SIGNAL_STACK_START CONTROL_STACK_END
#endif #endif
#define SIGNAL_STACK_SIZE SIGSTKSZ #define SIGNAL_STACK_SIZE SIGSTKSZ
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment