- case 'A': berkeley_format = 0; break;
- case 'B': berkeley_format = 1; break;
- case 'V': show_version = 1; break;
- case 'd': radix = decimal; break;
- case 'x': radix = hex; break;
- case 'o': radix = octal; break;
- case '?': usage();
- }
+ case 'A':
+ selected_output_format = FORMAT_SYSV;
+ break;
+ case 'B':
+ selected_output_format = FORMAT_BERKLEY;
+ break;
+ case 'G':
+ selected_output_format = FORMAT_GNU;
+ break;
+ case 'v':
+ case 'V':
+ show_version = 1;
+ break;
+ case 'd':
+ radix = decimal;
+ break;
+ case 'x':
+ radix = hex;
+ break;
+ case 'o':
+ radix = octal;
+ break;
+ case 't':
+ show_totals = 1;
+ 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 'h':
+ case 'H':
+ case '?':
+ usage (stderr, 1);
+ }
+
+ if (show_version)
+ print_version ("size");
+ if (show_help)
+ usage (stdout, 0);