From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29189 invoked by alias); 3 Mar 2011 20:27:09 -0000 Received: (qmail 29181 invoked by uid 22791); 3 Mar 2011 20:27:08 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Mar 2011 20:27:04 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 2BB0A2600F; Thu, 3 Mar 2011 12:27:03 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost2.vmware.com (Postfix) with ESMTP id 218AE8EE63; Thu, 3 Mar 2011 12:27:03 -0800 (PST) Message-ID: <4D6FF996.9040700@vmware.com> Date: Thu, 03 Mar 2011 20:27:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: "H.J. Lu" , "bug-binutils@gnu.org" , "gdb-patches@sourceware.org" Subject: [RFA] elf64-x86-64.c, elf_x86_64_relocate_section, remove dead code. Content-Type: multipart/mixed; boundary="------------020705060207020702030307" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00207.txt.bz2 This is a multi-part message in MIME format. --------------020705060207020702030307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 66 Within this case statement, the conditional cannot be true. OK? --------------020705060207020702030307 Content-Type: text/plain; name="elf64-x86-64.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="elf64-x86-64.txt" Content-length: 922 2011-03-03 Michael Snyder * 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; } } --------------020705060207020702030307--