From patchwork Mon Apr 14 12:45:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 28321 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 692742036A for ; Mon, 14 Apr 2014 12:45:30 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf30735905yha.3 for ; Mon, 14 Apr 2014 05:45:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=yhz5pApon7lEuTvbyhK4L8Bkwdh5d0du9BKdq9OMtMU=; b=m/GNUzXf/0JdUQ3TfzPVowH7Kd4l2OtNvgsFkpDzgo2+6umhQkWn8crseKtiUPotiA 6TS6EJl3D182+4C9TCbYGAVT2xqsZ69pzxnyQZT+Hqu6W16wXYqn42SiMxnbZUluwfbm PUnmtk5VwXNLruj6GofeHmA9xXerjI1YJAQtyfHi8CowFl89216+GnetU1JWs0YT6kdb Jpzv6Pb0V0P6UhERx6jIbDvtELYYr/J3+7iZxvFpHjf+7NikG8U8GdXWc84S4D75kxpp 5JlehEpGlfaUrtZKrK9yLeKgbE9UxZJQsV9e1StyGxMnOlG2XAgzyvoRIgWQjTcsv36j Tc0w== X-Gm-Message-State: ALoCoQlUOHaneMnvUGciVpqlcFnS59hfLZA3Sdhlq5IqokqnzHSnZH5SCfZYXbXu77h9/g5rhiem X-Received: by 10.236.113.43 with SMTP id z31mr19717967yhg.33.1397479530210; Mon, 14 Apr 2014 05:45:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.132 with SMTP id k4ls2642735qge.42.gmail; Mon, 14 Apr 2014 05:45:30 -0700 (PDT) X-Received: by 10.52.253.171 with SMTP id ab11mr13198743vdd.14.1397479530105; Mon, 14 Apr 2014 05:45:30 -0700 (PDT) Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [2607:f8b0:400c:c01::22f]) by mx.google.com with ESMTPS id cm9si2726280vcb.46.2014.04.14.05.45.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 05:45:30 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22f; Received: by mail-ve0-f175.google.com with SMTP id oz11so7459747veb.34 for ; Mon, 14 Apr 2014 05:45:30 -0700 (PDT) X-Received: by 10.58.185.145 with SMTP id fc17mr38664627vec.14.1397479530028; Mon, 14 Apr 2014 05:45:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp144311vcb; Mon, 14 Apr 2014 05:45:29 -0700 (PDT) X-Received: by 10.66.142.42 with SMTP id rt10mr44272006pab.1.1397479529303; Mon, 14 Apr 2014 05:45:29 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id sr9si8811285pab.38.2014.04.14.05.45.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Apr 2014 05:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-83454-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 6601 invoked by alias); 14 Apr 2014 12:45:13 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Subscribe: List-Archive: List-Post: , List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 6583 invoked by uid 89); 14 Apr 2014 12:45:11 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f176.google.com Received: from mail-we0-f176.google.com (HELO mail-we0-f176.google.com) (74.125.82.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 14 Apr 2014 12:45:09 +0000 Received: by mail-we0-f176.google.com with SMTP id x48so8106294wes.35 for ; Mon, 14 Apr 2014 05:45:06 -0700 (PDT) X-Received: by 10.180.94.8 with SMTP id cy8mr9473183wib.29.1397479506026; Mon, 14 Apr 2014 05:45:06 -0700 (PDT) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginm.net. [82.1.113.198]) by mx.google.com with ESMTPSA id l10sm23038086wiz.18.2014.04.14.05.45.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Apr 2014 05:45:05 -0700 (PDT) From: Will Newton To: binutils@sourceware.org Subject: [PATCH] bfd/elfnn-aarch64.c: Remove elfNN_aarch64_section_flags Date: Mon, 14 Apr 2014 13:45:01 +0100 Message-Id: <1397479501-19851-1-git-send-email-will.newton@linaro.org> X-IsSubscribed: yes X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22f 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; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 This function seems to be a left over from some previous functionality that no longer exists - the comment above seems to make no sense with the current code. Remove the function as it breaks handling of SystemTap static probe note sections. bfd/ChangeLog: 2014-04-14 Will Newton * elfnn-aarch64.c (elfNN_aarch64_section_flags): Remove function. (elf_backend_section_flags): Remove define. --- bfd/elfnn-aarch64.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 638938d..8094792 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -5499,17 +5499,6 @@ elfNN_aarch64_reloc_type_class (const struct bfd_link_info *info ATTRIBUTE_UNUSE } } -/* Set the right machine number for an AArch64 ELF file. */ - -static bfd_boolean -elfNN_aarch64_section_flags (flagword *flags, const Elf_Internal_Shdr *hdr) -{ - if (hdr->sh_type == SHT_NOTE) - *flags |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_SAME_CONTENTS; - - return TRUE; -} - /* Handle an AArch64 specific section when reading an object file. This is called when bfd_section_from_shdr finds a section with an unknown type. */ @@ -7286,9 +7275,6 @@ const struct elf_size_info elfNN_aarch64_size_info = #define elf_backend_reloc_type_class \ elfNN_aarch64_reloc_type_class -#define elf_backend_section_flags \ - elfNN_aarch64_section_flags - #define elf_backend_section_from_shdr \ elfNN_aarch64_section_from_shdr