diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-04 00:38:29 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-04 00:38:29 +0000 |
commit | 04aec78a0be135a3dad811f8fd403d72184801d1 (patch) | |
tree | 757f23f77f1cad8008396c9e043c9921935c4e1f /bfd | |
parent | 40892dfdbab058525be223cb416133a709513a64 (diff) | |
download | binutils-redhat-04aec78a0be135a3dad811f8fd403d72184801d1.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')
-rw-r--r-- | bfd/ChangeLog | 2 | ||||
-rw-r--r-- | bfd/elf64-x86-64.c | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 918927ac80..94e31dc76a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,7 @@ 2011-03-03 Michael Snyder <msnyder@vmware.com> + * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code. + * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error. * aoutx.h (aout_final_link): Use sizeof int not sizeof int*. diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 56eb62e809..ad2a1f34a0 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; } } |