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

Add RELOCATABLE_STACK_START to control stack spaces for solaris/sparc..

When RELOCATABLE_STACK_START is defined, the control stack, binding
stack, and sigalt stack are located wherever mmap finds room for them.

Only implemented with sparc_sunc config.
parent 8b1ba846
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ CC_V8PLUS = -m32 -xarch=sparc ...@@ -24,7 +24,7 @@ CC_V8PLUS = -m32 -xarch=sparc
AS_V8PLUS = -m32 -xarch=sparc AS_V8PLUS = -m32 -xarch=sparc
endif endif
CFLAGS += -xlibmieee -O CFLAGS += -xlibmieee -O -DRELOCATABLE_STACK_START
DEPEND_FLAGS = -xM DEPEND_FLAGS = -xM
ASFLAGS = $(AS_V8PLUS) ASFLAGS = $(AS_V8PLUS)
OS_LINK_FLAGS = -M /usr/lib/ld/map.noexstk OS_LINK_FLAGS = -M /usr/lib/ld/map.noexstk
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
#define READ_ONLY_SPACE_START (SpaceStart_TargetReadOnly) #define READ_ONLY_SPACE_START (SpaceStart_TargetReadOnly)
#define READ_ONLY_SPACE_SIZE ((2*MB_128) - SPARSE_BLOCK_SIZE) /* 256 MB - 32 KB, 256 MB max */ #define READ_ONLY_SPACE_SIZE ((2*MB_128) - SPARSE_BLOCK_SIZE) /* 256 MB - 32 KB, 256 MB max */
#if 0 #ifndef RELOCATABLE_STACK_START
#define BINDING_STACK_START (0x20000000) #define BINDING_STACK_START (0x20000000)
#endif #endif
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
#define STATIC_SPACE_START (SpaceStart_TargetStatic) #define STATIC_SPACE_START (SpaceStart_TargetStatic)
#define STATIC_SPACE_SIZE ((2*MB_128) - SPARSE_BLOCK_SIZE) /* 256 MB - 32 KB, 256 MB max */ #define STATIC_SPACE_SIZE ((2*MB_128) - SPARSE_BLOCK_SIZE) /* 256 MB - 32 KB, 256 MB max */
#if 0 #ifndef RELOCATABLE_STACK_START
#define CONTROL_STACK_START (0x38000000) #define CONTROL_STACK_START (0x38000000)
#endif #endif
#define CONTROL_STACK_SIZE (MB_128 - SPARSE_BLOCK_SIZE) /* 128 MB - 32 KB, 128 MB max */ #define CONTROL_STACK_SIZE (MB_128 - SPARSE_BLOCK_SIZE) /* 128 MB - 32 KB, 128 MB max */
......
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