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 /ld | |
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 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldmain.c | 16 |
2 files changed, 4 insertions, 16 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ea648a9..4525236 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2017-07-19 Tristan Gingold <gingold@adacore.com> + + * ldmain.c (main): Remove display of data size. + 2017-07-18 Maciej W. Rozycki <macro@imgtec.com> * testsuite/ld-elf/binutils.exp (binutils_test): Make the diff --git a/ld/ldmain.c b/ld/ldmain.c index ee5ab11..5d1a3f4 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -50,12 +50,6 @@ #include <string.h> -#ifdef HAVE_SBRK -#if !HAVE_DECL_SBRK -extern void *sbrk (); -#endif -#endif - #ifndef TARGET_SYSTEM_ROOT #define TARGET_SYSTEM_ROOT "" #endif @@ -198,9 +192,6 @@ main (int argc, char **argv) { char *emulation; long start_time = get_run_time (); -#ifdef HAVE_SBRK - char *start_sbrk = (char *) sbrk (0); -#endif #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) setlocale (LC_MESSAGES, ""); @@ -539,18 +530,11 @@ main (int argc, char **argv) if (config.stats) { -#ifdef HAVE_SBRK - char *lim = (char *) sbrk (0); -#endif long run_time = get_run_time () - start_time; fflush (stdout); fprintf (stderr, _("%s: total time in link: %ld.%06ld\n"), program_name, run_time / 1000000, run_time % 1000000); -#ifdef HAVE_SBRK - fprintf (stderr, _("%s: data size %ld\n"), program_name, - (long) (lim - start_sbrk)); -#endif fflush (stderr); } |