aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-09 09:57:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-09 09:57:11 -0700
commit3a53fb12c870d67537c883b9abd80d6a4ba408ff (patch)
tree8b74efc6727efaa85f0f6b668584489243ec7417
parent7c5c05effd92cc5732bee527303077fc2e6b62af (diff)
downloadbinutils-3a53fb12c870d67537c883b9abd80d6a4ba408ff.zip
binutils-3a53fb12c870d67537c883b9abd80d6a4ba408ff.tar.gz
binutils-3a53fb12c870d67537c883b9abd80d6a4ba408ff.tar.bz2
as --help: Display default option for --elf-stt-common=
* as.c (show_usage): Display default option for --elf-stt-common=.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/as.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ea3ee1b..ba6d9ca 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
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.
2018-08-07 James Patrick Conlon <cptjustice@gmail.com>
diff --git a/gas/as.c b/gas/as.c
index 02c7d29..b2a908a 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"));