This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]