This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed, PATCH] Correct "ld --help" to display "-z stack-size=SIZE"
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Thu, 15 Jun 2017 12:34:12 -0700
- Subject: [committed, PATCH] Correct "ld --help" to display "-z stack-size=SIZE"
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
ELF Linker command line option to set stack size is "-z stack-size=SIZE",
not "-z stacksize=SIZE".
* exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
instead of "-z stacksize=SIZE".
---
ld/ChangeLog | 5 +++++
ld/lexsup.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e3afabf..7791c03 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
+ instead of "-z stacksize=SIZE".
+
2017-06-15 Jiong Wang <jiong.wang@arm.com>
* testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 95c7e59..08106bc 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1792,7 +1792,7 @@ elf_shlib_list_options (FILE *file)
fprintf (file, _("\
-z nocommon Generate common symbols with STT_OBJECT type\n"));
fprintf (file, _("\
- -z stacksize=SIZE Set size of stack segment\n"));
+ -z stack-size=SIZE Set size of stack segment\n"));
fprintf (file, _("\
-z text Treat DT_TEXTREL in shared object as error\n"));
fprintf (file, _("\
--
2.9.4