From: Maciej W. Rozycki Date: Tue, 7 Feb 2017 02:06:20 +0000 (+0000) Subject: LD: vfinfo: Remove static NULL initializers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=befe814dd9ac6489c84ecd5c839b3b48aca95280;p=binutils-gdb.git LD: vfinfo: Remove static NULL initializers Remove static NULL initializers, moving the respective variables from data to BSS and saving some storage space. ld/ * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 618ae819ef0..43e4992f791 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2017-02-15 Maciej W. Rozycki + + * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers. + 2017-02-15 Igor Kudrin * testsuite/ld-scripts/sysroot-prefix.exp diff --git a/ld/ldmisc.c b/ld/ldmisc.c index 904a23d37d0..b50637d9edd 100644 --- a/ld/ldmisc.c +++ b/ld/ldmisc.c @@ -280,8 +280,8 @@ vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning) The arguments are a BFD, a section, and an offset. */ { static bfd *last_bfd; - static char *last_file = NULL; - static char *last_function = NULL; + static char *last_file; + static char *last_function; bfd *abfd; asection *section; bfd_vma offset;