summaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-04 00:38:29 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-04 00:38:29 +0000
commit08c135952ece3dfb7ee20fc829dd1ce9cf0b31fd (patch)
tree56b167dfd13e68a4928e69a681042162e0b54cba /bfd/elf64-x86-64.c
parentb6977ef1bd3b10dc588cdfeaad318f3756581d2f (diff)
downloadbinutils-gdb-08c135952ece3dfb7ee20fc829dd1ce9cf0b31fd.tar.gz
2011-03-03 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 56eb62e8094..ad2a1f34a00 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -3012,18 +3012,6 @@ elf_x86_64_relocate_section (bfd *output_bfd,
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;
}
}