From f9c316c4d75be236bbaa8464ef803ed2d3859d6d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 15 Jan 2014 07:43:19 -0800 Subject: Silence uninitialized warning on ehdr_start_save Older GCC, like 4.1/4.2, will issue an uninitialized warning on ehdr_start_save. This patch silences by using struct bfd_link_hash_entry ehdr_start_save = ehdr_start_save; * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Silence uninitialized warning on ehdr_start_save with older GCC. --- ld/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ld/ChangeLog') diff --git a/ld/ChangeLog b/ld/ChangeLog index eaa6b93..91055de 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 -- cgit v1.1