bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.


From: Michael Snyder
Subject: [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.
Date: Thu, 03 Mar 2011 12:27:02 -0800
User-agent: Thunderbird 2.0.0.24 (X11/20101201)

Within this case statement, the conditional cannot be true.

OK?

2011-03-03  Michael Snyder  <address@hidden>

        * 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;
            }
        }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]