diff --git a/ld/ChangeLog b/ld/ChangeLog index 5d120f1dec..32c5f1c431 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2015-04-01 Ed Schouten + + * emultempl/elf32.em (gld*_before_allocation): Zero-initialize + the ehdr_start_save variable. + 2015-03-31 Ed Schouten * Makefile.am (ALL_64_EMULATION_SOURCES): Add diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 618e20a251..2caddbe7f1 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 = ehdr_start_save; + struct bfd_link_hash_entry ehdr_start_save = {}; if (is_elf_hash_table (link_info.hash)) {