This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Document/add historic BSD options to strip and size


Hi folks...

The following patch does two things:

	* Documents the -d alias for --strip-debug in strip
	* Adds the -t (and --totals) option to size

The size -t option prints the totals of all listed objects when
using the Berkeley-style output format, like so:

p5064:thorpej 101$ /usr/local/gnu/bin/size -t uipc*.o
   text    data     bss     dec     hex filename
   2056       0       0    2056     808 uipc_domain.o
  10008      16       0   10024    2728 uipc_mbuf.o
   2040       0       0    2040     7f8 uipc_mbuf2.o
     40     208       0     248      f8 uipc_proto.o
  10984      16       0   11000    2af8 uipc_socket.o
   7096       0       0    7096    1bb8 uipc_socket2.o
  10008       0       0   10008    2718 uipc_syscalls.o
   9048     128       0    9176    23d8 uipc_usrreq.o
  51280     368       0   51648    c9c0 (TOTALS)
p5064:thorpej 102$  

OK to commit?

	* objcopy.c (strip_usage): Document -d as an alias
	--strip-debug.
	* size.c: Update copyright years.
	(usage): Document [-t | --totals] options.
	(long_options): Add --totals option.
	(main): If the [-t | --totals] option is specified and
	the output format is Berkeley-style, print the total
	text, data, and bss sizes of all objects listed.
	(print_berkeley_format): If the [-t | --totals] option
	is specified, track the total text, data, and bss
	sizes.
	* doc/binutils.texi (size): Document [-t | --totals] options.
	(strip): Document -d as an alias for --strip-debug.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: foo
Description: strip-size-patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]