diff --git a/ld/ChangeLog b/ld/ChangeLog index eaa6b93575..91055ded7a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2014-01-15 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): + Silence uninitialized warning on ehdr_start_save with older + GCC. + 2014-01-15 Alan Modra * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 13f86f084e..569c7f7a81 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1481,7 +1481,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 = ehdr_start_save; if (is_elf_hash_table (link_info.hash)) {