From 3a53fb12c870d67537c883b9abd80d6a4ba408ff Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Aug 2018 09:57:11 -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 ea3ee1b40a0..ba6d9ca7895 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2018-08-09 H.J. Lu + + * as.c (show_usage): Display default option for --elf-stt-common=. + 2018-08-09 H.J. Lu * config/tc-i386.c (md_show_usage): Display default options. diff --git a/gas/as.c b/gas/as.c index 02c7d2970bf..b2a908a2f75 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.30.2