aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-10-08 10:27:43 +1030
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-10-21 00:59:57 +0300
commit0520831eb151064506f6cc3fa771278c260932cf (patch)
treecf4df0b1eae238062a4cb1348c056ce6f4730218
parentx86: Update register operand check for AddrPrefixOpReg (diff)
downloadbinutils-gdb-0520831eb151064506f6cc3fa771278c260932cf.tar.gz
binutils-gdb-0520831eb151064506f6cc3fa771278c260932cf.tar.bz2
binutils-gdb-0520831eb151064506f6cc3fa771278c260932cf.zip
[GOLD] Increase --split-stack-adjust-size
For functions with small (< 256 bytes) stack frames, the current x86 do_calls_non_split ignores --split-stack-adjust-size and, in combination with __morestack_non_split, supplies a non-split-stack function with at least 0x100000 (1M) available stack. On powerpc64, a default of 0x4000 is not large enough to reliably work with the golang testsuite. This increase the default size to the defacto x86 value. * options.h (split_stack_adjust_size): Default to 0x100000. (cherry picked from commit f9ff65d4dffbaf342dce7a8760059c27683cd962) (cherry picked from commit 5cffc4901e1d72da87aa7ff6d22c152726455831)
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/options.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 1f2ee06817..7a886fbcef 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,7 @@
+2020-10-08 Alan Modra <amodra@gmail.com>
+
+ * options.h (split_stack_adjust_size): Default to 0x100000.
+
2020-09-26 Alan Modra <amodra@gmail.com>
* powerpc.cc (Target_powerpc): Rename power10_stubs_ to
diff --git a/gold/options.h b/gold/options.h
index 11ff015fca..ea379080a9 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1260,7 +1260,7 @@ class General_options
"output sections"),
N_("(PowerPC only) Each output section has its own stubs"));
- DEFINE_uint(split_stack_adjust_size, options::TWO_DASHES, '\0', 0x4000,
+ DEFINE_uint(split_stack_adjust_size, options::TWO_DASHES, '\0', 0x100000,
N_("Stack size when -fsplit-stack function calls non-split"),
N_("SIZE"));