aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-14 10:40:48 +0000
committerAlan Modra <amodra@gmail.com>2000-05-14 10:40:48 +0000
commite3a696124456c88ac2d10d7ae119b6375cf2a34f (patch)
treeaed4762c1846b06194e9cd3770b4fe23ec219b85 /binutils
parentb4fd930a27e65266338cd49407e3cd67309d1c50 (diff)
downloadgdb-e3a696124456c88ac2d10d7ae119b6375cf2a34f.zip
gdb-e3a696124456c88ac2d10d7ae119b6375cf2a34f.tar.gz
gdb-e3a696124456c88ac2d10d7ae119b6375cf2a34f.tar.bz2
Accept and ignore -f command line option.
Improve usage message.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog9
-rw-r--r--binutils/size.c18
2 files changed, 24 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 530dbb0..0403f87 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,12 @@
+2000-05-14 Alan Modra <alan@linuxcare.com.au>
+
+ * size.c (usage): Associate short options with corresponding long
+ option to give a clue as to their function.
+
+2000-05-14 Philippe De Muyter <phdm@macqel.be>
+
+ * size.c (main): Accept and ignore `-f' option.
+
2000-05-13 Alan Modra <alan@linuxcare.com.au>
* bucomm.h (gettext, dgettext, dcgettext, textdomain,
diff --git a/binutils/size.c b/binutils/size.c
index 070834b..4cf17b2 100644
--- a/binutils/size.c
+++ b/binutils/size.c
@@ -77,8 +77,10 @@ usage (stream, status)
int status;
{
fprintf (stream, _("\
-Usage: %s [-ABdoxV] [--format=berkeley|sysv] [--radix=8|10|16]\n\
- [--target=bfdname] [--version] [--help] [file...]\n"), program_name);
+Usage: %s [-A | --format=sysv | -B | --format=berkeley]\n\
+ [-o | --radix=8 | -d | --radix=10 | -h | --radix=16]\n\
+ [-V | --version] [--target=bfdname] [--help] [file...]\n"),
+ program_name);
#if BSD_DEFAULT
fputs (_("default is --format=berkeley\n"), stream);
#else
@@ -120,7 +122,7 @@ main (argc, argv)
bfd_init ();
set_default_bfd_target ();
- while ((c = getopt_long (argc, argv, "ABVdox", long_options,
+ while ((c = getopt_long (argc, argv, "ABVdfox", long_options,
(int *) 0)) != EOF)
switch (c)
{
@@ -186,6 +188,16 @@ main (argc, argv)
case 'o':
radix = octal;
break;
+ case 'f': /* FIXME : For sysv68, `-f' means `full format', i.e.
+ `[fname:] M(.text) + N(.data) + O(.bss) + P(.comment) = Q'
+ where `fname: ' appears only if there are >= 2 input files,
+ and M, N, O, P, Q are expressed in decimal by default,
+ hexa or octal if requested by `-x' or `-o'.
+ Just to make things interesting, Solaris also accepts -f,
+ which prints out the size of each allocatable section, the
+ name of the section, and the total of the section sizes. */
+ /* For the moment, accept `-f' silently, and ignore it. */
+ break;
case 0:
break;
case '?':