aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-09-28 15:29:18 +0100
committerNick Clifton <nickc@redhat.com>2022-09-28 15:29:18 +0100
commitbe5f79aa3952accc5133875f523875c0fa397761 (patch)
treeb283f23c8f3469aaf892e1c8254569cfae29d5fd
parent9cfd4ed49d84fb0fc8c4c152297a95958514b6cb (diff)
downloadgdb-be5f79aa3952accc5133875f523875c0fa397761.zip
gdb-be5f79aa3952accc5133875f523875c0fa397761.tar.gz
gdb-be5f79aa3952accc5133875f523875c0fa397761.tar.bz2
The help document of size misses an option.
PR 29628 * size.c (usage): Add -f. * doc/binutils.texi (size): Add -f.
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/doc/binutils.texi10
-rw-r--r--binutils/size.c5
3 files changed, 19 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index c145015..38debde 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-28 Nick Clifton <nickc@redhat.com>
+
+ PR 29628
+ * size.c (usage): Add -f.
+ * doc/binutils.texi (size): Add -f.
+
2022-09-20 Nick Clifton <nickc@redhat.com>
* objcopy.c (copy_object): Do not issue a warning message when
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 34a4164..5ea95ed 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -3117,6 +3117,7 @@ size [@option{-A}|@option{-B}|@option{-G}|@option{--format=}@var{compatibility}]
[@option{--common}]
[@option{-t}|@option{--totals}]
[@option{--target=}@var{bfdname}] [@option{-V}|@option{--version}]
+ [@option{-f}]
[@var{objfile}@dots{}]
@c man end
@end smallexample
@@ -3203,6 +3204,9 @@ Total 388688
@end smallexample
@item --help
+@itemx -h
+@itemx -H
+@item -?
Show a summary of acceptable arguments and options.
@item -d
@@ -3234,9 +3238,15 @@ Specify that the object-code format for @var{objfile} is
automatically recognize many formats.
@xref{Target Selection}, for more information.
+@item -v
@item -V
@itemx --version
Display the version number of @command{size}.
+
+@item -f
+Ignored. This option is used by other versions of the @command{size}
+program, but it is not supported by the GNU Binutils version.
+
@end table
@c man end
diff --git a/binutils/size.c b/binutils/size.c
index 9bdafcb..8e9adcd 100644
--- a/binutils/size.c
+++ b/binutils/size.c
@@ -92,11 +92,12 @@ usage (FILE *stream, int status)
-A|-B|-G --format={sysv|berkeley|gnu} Select output style (default is %s)\n\
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex\n\
-t --totals Display the total sizes (Berkeley only)\n\
+ -f Ignored.\n\
--common Display total size for *COM* syms\n\
--target=<bfdname> Set the binary file format\n\
@<file> Read options from <file>\n\
- -h --help Display this information\n\
- -v --version Display the program's version\n\
+ -h|-H|-? --help Display this information\n\
+ -v|-V --version Display the program's version\n\
\n"),
#if BSD_DEFAULT
"berkeley"