summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-06-24 14:12:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-06-24 15:02:02 -0700
commit7cc152be3e6f24f2bdb9740157426dc115cdaa54 (patch)
treea229111b1a55fb0c552313669521eb5abaff75d3
parent32fad71f9e6cdf73fe3c10123b23f42397b83e7d (diff)
downloadbinutils-gdb-7cc152be3e6f24f2bdb9740157426dc115cdaa54.tar.gz
Silence older GCC warning
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older GCC warning.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-x86-64.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 49303b3e1bb..97c1431361b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2015-06-24 H.J. Lu <hongjiu.lu@intel.com>
+ * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older
+ GCC warning.
+
+2015-06-24 H.J. Lu <hongjiu.lu@intel.com>
+
* elf32-i386.c (elf_i386_allocate_dynrelocs): Always allocate
space for the first .plt entry.
(elf_i386_size_dynamic_sections): Always add DT_PLTGOT for .plt
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index fb22602ed56..3022debb99d 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -2972,6 +2972,9 @@ elf_x86_64_convert_mov_to_lea (bfd *abfd, asection *sec,
{
Elf_Internal_Sym *isym;
+ /* Silence older GCC warning. */
+ h = NULL;
+
isym = bfd_sym_from_r_symndx (&htab->sym_cache,
abfd, r_symndx);