This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, "bug-binutils at gnu dot org" <bug-binutils at gnu dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 03 Mar 2011 12:27:02 -0800
- Subject: [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.
Within this case statement, the conditional cannot be true.
OK?
2011-03-03 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
Index: elf64-x86-64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-x86-64.c,v
retrieving revision 1.212
diff -u -p -u -p -r1.212 elf64-x86-64.c
--- elf64-x86-64.c 17 Feb 2011 13:51:52 -0000 1.212
+++ elf64-x86-64.c 3 Mar 2011 20:23:40 -0000
@@ -2999,18 +2999,6 @@ elf_x86_64_relocate_section (bfd *output
relocation = (base_got->output_section->vma
+ base_got->output_offset + off);
- if (r_type != R_X86_64_GOTPCREL
- && r_type != R_X86_64_GOTPCREL64)
- {
- asection *gotplt;
- if (htab->elf.splt != NULL)
- gotplt = htab->elf.sgotplt;
- else
- gotplt = htab->elf.igotplt;
- relocation -= (gotplt->output_section->vma
- - gotplt->output_offset);
- }
-
goto do_relocation;
}
}