projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fad71
)
Silence older GCC warning
author
H.J. Lu
<hjl.tools@gmail.com>
Wed, 24 Jun 2015 21:12:15 +0000
(14:12 -0700)
committer
H.J. Lu
<hjl.tools@gmail.com>
Wed, 24 Jun 2015 22:02:02 +0000
(15:02 -0700)
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older
GCC warning.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf64-x86-64.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 49303b3e1bb57894059f7f327e859a6087ff8a8b..97c1431361b57331dbc76cd6674e1ee06d75955e 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+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
diff --git
a/bfd/elf64-x86-64.c
b/bfd/elf64-x86-64.c
index fb22602ed56152c97312e139e79ecbd770bbb577..3022debb99dcb163ec13d990266b63a6034eb173 100644
(file)
--- 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);