From patchwork Tue May 7 10:02:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 16729 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9D8E4238FD for ; Tue, 7 May 2013 10:03:20 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id w16sf524561vbb.9 for ; Tue, 07 May 2013 03:03:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type:content-transfer-encoding; bh=CQpBs88foxXQ9bO1x4NniaiM/Ke6oWnlZM45d2EH0Q4=; b=e1quammayGHKYf55iky2LxjkFAO+F9vsHHC3CsxdnbilQI4I02kub52S2J3ssEKoP/ ieRzWNRwr7s2JTHD747+vdgaes9CIS8GOAyX+GNL0Indgf6iWeESzyEZd17z+HsscQvr dpd5fPP1pQ0VtF6qnlOk/60BkRfTnsYgi0P8eJ8YAFbhBGo1IUATeZ1hhuG0r0B0q5Fs yrHUmb7oxEMi9a98qFc+Le19xqyX4NYVpaAqMOL+rMpXzWSnpdldRdKYKOOj7h0XquPt F1BH7xlNRAltZZ1OtGPKbMFfA6MNiGCqGbeAIvQYvqlcyScOP+nSwCBQKYilR7yjHDzf oAFQ== X-Received: by 10.236.32.67 with SMTP id n43mr870543yha.0.1367920981795; Tue, 07 May 2013 03:03:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.104 with SMTP id kl8ls232401qeb.78.gmail; Tue, 07 May 2013 03:03:01 -0700 (PDT) X-Received: by 10.52.68.49 with SMTP id s17mr565425vdt.92.1367920981572; Tue, 07 May 2013 03:03:01 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id os3si11903413vcb.69.2013.05.07.03.03.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 03:03:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ia10so297460vcb.41 for ; Tue, 07 May 2013 03:03:01 -0700 (PDT) X-Received: by 10.52.175.200 with SMTP id cc8mr567419vdc.94.1367920981449; Tue, 07 May 2013 03:03:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp91507veb; Tue, 7 May 2013 03:03:00 -0700 (PDT) X-Received: by 10.205.38.195 with SMTP id tj3mr351700bkb.67.1367920980058; Tue, 07 May 2013 03:03:00 -0700 (PDT) Received: from mail-bk0-x235.google.com (mail-bk0-x235.google.com [2a00:1450:4008:c01::235]) by mx.google.com with ESMTPS id lu4si8904618bkb.217.2013.05.07.03.02.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 03:03:00 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4008:c01::235 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=2a00:1450:4008:c01::235; Received: by mail-bk0-f53.google.com with SMTP id i18so186948bkv.12 for ; Tue, 07 May 2013 03:02:59 -0700 (PDT) X-Received: by 10.204.226.136 with SMTP id iw8mr337230bkb.135.1367920979454; Tue, 07 May 2013 03:02:59 -0700 (PDT) Received: from localhost.localdomain (cpc11-seac20-2-0-cust84.7-2.cable.virginmedia.com. [81.108.156.85]) by mx.google.com with ESMTPSA id cm9sm6411041bkb.4.2013.05.07.03.02.57 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 07 May 2013 03:02:58 -0700 (PDT) Message-ID: <5188D150.1010100@linaro.org> Date: Tue, 07 May 2013 11:02:56 +0100 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: binutils@sourceware.org CC: patches@linaro.org Subject: [PATCH] bfd/elf-ifunc.c: Remove unused function, _bfd_elf_create_ifunc_dyn_reloc. X-Gm-Message-State: ALoCoQlexZebGABozsHsycxWmNDZRengggEygt5BsTvnAH/828Go63/9oeXUCw9DpCgdrNa91Fa2 X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , bfd/ChangeLog: 2013-05-07 Will Newton * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused function. * elf-bfd.h: Likewise. --- bfd/elf-bfd.h | 3 --- bfd/elf-ifunc.c | 45 --------------------------------------------- 2 files changed, 48 deletions(-) diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index b643dbc..d1a7e26 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -2378,9 +2378,6 @@ struct elf_dyn_relocs extern bfd_boolean _bfd_elf_create_ifunc_sections (bfd *, struct bfd_link_info *); -extern asection * _bfd_elf_create_ifunc_dyn_reloc - (bfd *, struct bfd_link_info *, asection *sec, asection *sreloc, - struct elf_dyn_relocs **); extern bfd_boolean _bfd_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *, struct elf_link_hash_entry *, struct elf_dyn_relocs **, unsigned int, unsigned int); diff --git a/bfd/elf-ifunc.c b/bfd/elf-ifunc.c index c2fa163..ea08329 100644 --- a/bfd/elf-ifunc.c +++ b/bfd/elf-ifunc.c @@ -104,51 +104,6 @@ _bfd_elf_create_ifunc_sections (bfd *abfd, struct bfd_link_info *info) return TRUE; } -/* For a STT_GNU_IFUNC symbol, create a dynamic reloc section, SRELOC, - for the input section, SEC, and append this reloc to HEAD. */ - -asection * -_bfd_elf_create_ifunc_dyn_reloc (bfd *abfd, struct bfd_link_info *info, - asection *sec, asection *sreloc, - struct elf_dyn_relocs **head) -{ - struct elf_dyn_relocs *p; - struct elf_link_hash_table *htab = elf_hash_table (info); - - if (sreloc == NULL) - { - const struct elf_backend_data *bed = get_elf_backend_data (abfd); - - if (htab->dynobj == NULL) - htab->dynobj = abfd; - - sreloc = _bfd_elf_make_dynamic_reloc_section (sec, htab->dynobj, - bed->s->log_file_align, - abfd, - bed->rela_plts_and_copies_p); - if (sreloc == NULL) - return NULL; - } - - p = *head; - if (p == NULL || p->sec != sec) - { - bfd_size_type amt = sizeof *p; - - p = ((struct elf_dyn_relocs *) bfd_alloc (htab->dynobj, amt)); - if (p == NULL) - return NULL; - p->next = *head; - *head = p; - p->sec = sec; - p->count = 0; - p->pc_count = 0; - } - p->count += 1; - - return sreloc; -} - /* Allocate space in .plt, .got and associated reloc sections for dynamic relocs against a STT_GNU_IFUNC symbol definition. */