diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-04-27 10:01:46 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-04-27 10:01:43 -0400 |
commit | be7962856d299a0f231ac36f89f4a89cbecfe0ff (patch) | |
tree | cd82d79c1b4b48b6e188bc65654b99237c1252de | |
parent | 60691d3c2c0fe9ecc264741ff41f283fef579b8a (diff) |
[S390] Improved kernel stack overflow checking.
Recent cvs versions of gcc have support for an improved stack overflow
checking that calculates the size of the guard size for each function.
If the compiler accepts -mstack-size without -mstack-guard then the
new stack check is available. We always want to use the new stack
checker.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
-rw-r--r-- | arch/s390/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile index b1e558496469..ece5adc05606 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile | |||
@@ -67,8 +67,10 @@ endif | |||
67 | 67 | ||
68 | ifeq ($(call cc-option-yn,-mstack-size=8192 -mstack-guard=128),y) | 68 | ifeq ($(call cc-option-yn,-mstack-size=8192 -mstack-guard=128),y) |
69 | cflags-$(CONFIG_CHECK_STACK) += -mstack-size=$(STACK_SIZE) | 69 | cflags-$(CONFIG_CHECK_STACK) += -mstack-size=$(STACK_SIZE) |
70 | ifneq ($(call cc-option-yn,-mstack-size=8192),y) | ||
70 | cflags-$(CONFIG_CHECK_STACK) += -mstack-guard=$(CONFIG_STACK_GUARD) | 71 | cflags-$(CONFIG_CHECK_STACK) += -mstack-guard=$(CONFIG_STACK_GUARD) |
71 | endif | 72 | endif |
73 | endif | ||
72 | 74 | ||
73 | ifeq ($(call cc-option-yn,-mwarn-dynamicstack),y) | 75 | ifeq ($(call cc-option-yn,-mwarn-dynamicstack),y) |
74 | cflags-$(CONFIG_WARN_STACK) += -mwarn-dynamicstack | 76 | cflags-$(CONFIG_WARN_STACK) += -mwarn-dynamicstack |