diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-07-19 09:55:12 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-07-19 09:55:12 +0200 |
commit | e4943f2c7569a829eb6129f10f7c5401a96aaa08 (patch) | |
tree | 43d4bd10919d8ae70d4fa61dcbab74f58d6e02b6 /binutils/nm.c | |
parent | 804a4093182a4bdbc30abfd3081a3f58c3bd2329 (diff) | |
download | gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.zip gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.tar.gz gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.tar.bz2 |
Remove datasize measurements based on sbrk()
binutils/
* nm.c (show_stats): Remove variable.
(long_options): Remove --stats option.
(main): Remove handling of --stats.
ld/
* ldmain.c (main): Remove display of data size.
gas/
* as.c (start_sbrk): Remove.
(main): Remove assignment.
(dump_statistics): Remove display of data size.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 7ddcc8a..5e03a8a 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -157,7 +157,6 @@ static int sort_by_size = 0; /* Sort by size of symbol. */ static int undefined_only = 0; /* Print undefined symbols only. */ static int dynamic = 0; /* Print dynamic symbols. */ static int show_version = 0; /* Show the version number. */ -static int show_stats = 0; /* Show statistics. */ static int show_synthetic = 0; /* Display synthesized symbols too. */ static int line_numbers = 0; /* Print line numbers for symbols. */ static int allow_special_symbols = 0; /* Allow special symbols. */ @@ -221,7 +220,6 @@ static struct option long_options[] = {"reverse-sort", no_argument, &reverse_sort, 1}, {"size-sort", no_argument, 0, OPTION_SIZE_SORT}, {"special-syms", no_argument, &allow_special_symbols, 1}, - {"stats", no_argument, &show_stats, 1}, {"synthetic", no_argument, &show_synthetic, 1}, {"target", required_argument, 0, OPTION_TARGET}, {"defined-only", no_argument, &defined_only, 1}, @@ -1797,15 +1795,6 @@ main (int argc, char **argv) END_PROGRESS (program_name); -#ifdef HAVE_SBRK - if (show_stats) - { - char *lim = (char *) sbrk (0); - - non_fatal (_("data size %ld"), (long) (lim - (char *) &environ)); - } -#endif - exit (retval); return retval; } |