+2018-08-23 Alan Modra <amodra@gmail.com>
+
+ PR 23566
+ * emultempl/elf32.em (before_allocation): Warning fix.
+
2018-08-23 H.J. Lu <hongjiu.lu@intel.com>
PR ld/23536
}
}
-#if defined(__GNUC__) && GCC_VERSION < 4006
- /* Work around a GCC uninitialized warning bug fixed in GCC 4.6. */
-static struct bfd_link_hash_entry ehdr_start_empty;
-#endif
-
/* This is called after the sections have been attached to output
sections, but before any sizes or addresses have been set. */
asection *sinterp;
bfd *abfd;
struct elf_link_hash_entry *ehdr_start = NULL;
-#if defined(__GNUC__) && GCC_VERSION < 4006
- /* Work around a GCC uninitialized warning bug fixed in GCC 4.6. */
- struct bfd_link_hash_entry ehdr_start_save = ehdr_start_empty;
-#else
struct bfd_link_hash_entry ehdr_start_save;
-#endif
+ /* The memset is here only to silence brain-dead compiler warnings
+ that the variable may be used uninitialized. */
+ memset (&ehdr_start_save, 0, sizeof ehdr_start_save);
if (is_elf_hash_table (link_info.hash))
{
_bfd_elf_tls_setup (link_info.output_bfd, &link_info);