This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] as --help: Display default option for --elf-stt-common=
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 9 Aug 2018 09:58:20 -0700
- Subject: [PATCH] as --help: Display default option for --elf-stt-common=
* as.c (show_usage): Display default option for --elf-stt-common=.
---
gas/ChangeLog | 4 ++++
gas/as.c | 7 ++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ea3ee1b40a..ba6d9ca789 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * as.c (show_usage): Display default option for --elf-stt-common=.
+
2018-08-09 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_show_usage): Display default options.
diff --git a/gas/as.c b/gas/as.c
index 02c7d2970b..b2a908a2f7 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -301,7 +301,12 @@ Options:\n\
--size-check=[error|warning]\n\
ELF .size directive check (default --size-check=error)\n"));
fprintf (stream, _("\
- --elf-stt-common=[no|yes]\n\
+ --elf-stt-common=[no|yes] "));
+ if (DEFAULT_GENERATE_ELF_STT_COMMON)
+ fprintf (stream, _("(default: yes)\n"));
+ else
+ fprintf (stream, _("(default: no)\n"));
+ fprintf (stream, _("\
generate ELF common symbols with STT_COMMON type\n"));
fprintf (stream, _("\
--sectname-subst enable section name substitution sequences\n"));
--
2.17.1