mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Work around a GCC uninitialized warning bug
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work around a GCC uninitialized warning bug fixed in GCC 4.6.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
|
||||||
|
around a GCC uninitialized warning bug fixed in GCC 4.6.
|
||||||
|
|
||||||
2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
|
2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
|
||||||
|
|
||||||
* emultempl/aarch64elf.em
|
* emultempl/aarch64elf.em
|
||||||
|
@ -1412,7 +1412,12 @@ gld${EMULATION_NAME}_before_allocation (void)
|
|||||||
asection *sinterp;
|
asection *sinterp;
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
struct elf_link_hash_entry *ehdr_start = NULL;
|
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_save;
|
||||||
|
#else
|
||||||
struct bfd_link_hash_entry ehdr_start_save;
|
struct bfd_link_hash_entry ehdr_start_save;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (is_elf_hash_table (link_info.hash))
|
if (is_elf_hash_table (link_info.hash))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user