aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-07-19 09:55:12 +0200
committerTristan Gingold <tgingold@free.fr>2017-07-19 09:55:12 +0200
commite4943f2c7569a829eb6129f10f7c5401a96aaa08 (patch)
tree43d4bd10919d8ae70d4fa61dcbab74f58d6e02b6 /binutils
parent804a4093182a4bdbc30abfd3081a3f58c3bd2329 (diff)
downloadfsf-binutils-gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.zip
fsf-binutils-gdb-e4943f2c7569a829eb6129f10f7c5401a96aaa08.tar.gz
fsf-binutils-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')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/nm.c11
2 files changed, 6 insertions, 11 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d098082..7e9d809 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2017-07-19 Tristan Gingold <gingold@adacore.com>
+
+ * nm.c (show_stats): Remove variable.
+ (long_options): Remove --stats option.
+ (main): Remove handling of --stats.
+
2017-07-18 Nick Clifton <nickc@redhat.com>
PR 21775
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;
}