Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.
@ 2011-03-03 20:27 Michael Snyder
  2011-03-03 22:32 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2011-03-03 20:27 UTC (permalink / raw)
  To: H.J. Lu, bug-binutils, gdb-patches

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

Within this case statement, the conditional cannot be true.

OK?


[-- Attachment #2: elf64-x86-64.txt --]
[-- Type: text/plain, Size: 922 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.
  2011-03-03 20:27 [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code Michael Snyder
@ 2011-03-03 22:32 ` Alan Modra
  2011-03-04  0:39   ` Michael Snyder
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2011-03-03 22:32 UTC (permalink / raw)
  To: Michael Snyder; +Cc: H.J. Lu, bug-binutils, gdb-patches

On Thu, Mar 03, 2011 at 12:27:02PM -0800, Michael Snyder wrote:
> 	* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.

OK.

-- 
Alan Modra
Australia Development Lab, IBM


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code.
  2011-03-03 22:32 ` Alan Modra
@ 2011-03-04  0:39   ` Michael Snyder
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Snyder @ 2011-03-04  0:39 UTC (permalink / raw)
  To: Michael Snyder, H.J. Lu, bug-binutils, gdb-patches

Alan Modra wrote:
> On Thu, Mar 03, 2011 at 12:27:02PM -0800, Michael Snyder wrote:
>> 	* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
> 
> OK.
> 

Committed, thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-04  0:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-03 20:27 [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code Michael Snyder
2011-03-03 22:32 ` Alan Modra
2011-03-04  0:39   ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox