This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Add missing initializer to silence GCC 4.2
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 8 May 2017 20:40:12 -0000
- Subject: [binutils-gdb] Add missing initializer to silence GCC 4.2
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dd9e66ee9549c872fad36a21d521b68b14429f38
commit dd9e66ee9549c872fad36a21d521b68b14429f38
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon May 8 13:37:50 2017 -0700
Add missing initializer to silence GCC 4.2
Silence GCC 4.2:
elf64-x86-64.c: In function â??elf_x86_64_get_synthetic_symtabâ??:
elf64-x86-64.c:6490: warning: missing initializer
elf64-x86-64.c:6490: warning: (near initialization for â??plts[3].secâ??)
* elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
initializer for GCC 4.2.
* lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/elf32-i386.c | 2 +-
bfd/elf64-x86-64.c | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ae7f91e..5205548 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
+ * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
+ initializer to silence GCC 4.2.
+ * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
+
+2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
+
* elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
(LAZY_PLT_ENTRY_SIZE): This.
(NON_LAZY_PLT_ENTRY_SIZE): New.
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 0707b5a..227cd25 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -6053,7 +6053,7 @@ elf_i386_get_synthetic_symtab (bfd *abfd,
{
{ ".plt", NULL, NULL, plt_unknown, 0, 0, 0 },
{ ".plt.got", NULL, NULL, plt_non_lazy, 0, 0, 0 },
- { NULL, }
+ { NULL, NULL, NULL, plt_non_lazy, 0, 0, 0 }
};
*ret = NULL;
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 6d69997..1fbba1b 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -6501,7 +6501,7 @@ elf_x86_64_get_synthetic_symtab (bfd *abfd,
{ ".plt", NULL, NULL, plt_unknown, 0, 0, 0, 0 },
{ ".plt.got", NULL, NULL, plt_non_lazy, 0, 0, 0, 0 },
{ ".plt.bnd", NULL, NULL, plt_bnd, 0, 0, 0, 0 },
- { NULL, }
+ { NULL, NULL, NULL, plt_non_lazy, 0, 0, 0, 0 }
};
*ret = NULL;