aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-04-01 13:01:38 +1030
committerAlan Modra <amodra@gmail.com>2015-04-01 13:14:53 +1030
commit4a0bc59ef6e01733bb70950ad546c66e4c3317ea (patch)
tree569d9843eac42b48ca717acf0495cf2539ed5abf /ld/emultempl
parent42271ec540461c63c847d2bea6b6e9cc50524966 (diff)
downloadfsf-binutils-gdb-4a0bc59ef6e01733bb70950ad546c66e4c3317ea.zip
fsf-binutils-gdb-4a0bc59ef6e01733bb70950ad546c66e4c3317ea.tar.gz
fsf-binutils-gdb-4a0bc59ef6e01733bb70950ad546c66e4c3317ea.tar.bz2
Yet another warning fix
Older compilers that warn wrongly will just need -Wno-error. No way am I going to init every single field, then have to edit this code whenever bfd_link_hash_entry changes. Another option, making the struct static, isn't very nice since it means larger binaries and worse code. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't init ehdr_start_save.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 2caddbe..ece2fb0 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1412,7 +1412,7 @@ gld${EMULATION_NAME}_before_allocation (void)
asection *sinterp;
bfd *abfd;
struct elf_link_hash_entry *ehdr_start = NULL;
- struct bfd_link_hash_entry ehdr_start_save = {};
+ struct bfd_link_hash_entry ehdr_start_save;
if (is_elf_hash_table (link_info.hash))
{