Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp445797ima; Fri, 26 Oct 2018 00:30:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5cAGTYumzrW5HWCS9BpqIwGzxtzi/XA4R+s/+6cfOj4wp1xui6HTFP+mG+f/W4qns0dncOD X-Received: by 2002:a63:5d03:: with SMTP id r3-v6mr2407770pgb.445.1540539051729; Fri, 26 Oct 2018 00:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540539051; cv=none; d=google.com; s=arc-20160816; b=rUKJd9WlMdMi/nEIY7whfP5zqRBIUWbG/RcpSPr+se+3J6bj0ihw1qOqiBWqi/hcyA QmzJmHPpTXsC3HyVUXKXTwax+7N3mVrmdxO1YbqXJ8YwvsUDqQmay1s9vK+GceHpXKhp pw/NpLBrYkeqEBxc8XpTDTsRJ9m5QGaYzdG2p5Xo5H9scWvLqAJTm2enHva4vBxPh6p7 yfXpDixrKHFasPJGv71ZeQcKemlF99aq14TUDx0nTduc2yG1v2GdLwpMDLCw+orPM1bX MzRs+wPDUADme3hzPhYGfbVCYZcFV7sgMJo3gk/9PxgglwJtsXEd2W0IHc4B925fPGlU MjLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=oThsgNm2yJDDDFI1cNhPM8eqEKJh+s8s5L8qR3N7rKc=; b=onvigQl0vCWVYtRKbOXWig245kfaDAuwkbNxctGSXJFqIHI7FPBLM0l1cEXvlQXiUg ZCT6gaYZgm+2ZzKAwRjoDQzMLSWxJ4beC+BVVoEK+qHXUAVkIv+9MVV83SCnynnnBAC+ rt16yLPVUVkfyJ8ActwUAL19K/sD3L43SS4pER1a1TpECOwydCG9ycqRTBAuYwtj3Z1H RgExzv50x48rLyVSgUpunw//ENIo+qd4um7Wl1+j8kD/4RiJ0CZo56DHncWTNqxm5vsq wjQ7F4idGS7Ixi0ToAxodGPEMo2W7Msd9lkcPC1jCGkOq4fbP1/kw7FF9AaMoJOQvhSb 63gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17-v6si10591917pgl.129.2018.10.26.00.30.36; Fri, 26 Oct 2018 00:30:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726570AbeJZQF7 (ORCPT + 99 others); Fri, 26 Oct 2018 12:05:59 -0400 Received: from terminus.zytor.com ([198.137.202.136]:40211 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbeJZQF6 (ORCPT ); Fri, 26 Oct 2018 12:05:58 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w9Q7TZtL136145 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 26 Oct 2018 00:29:35 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w9Q7TYov136142; Fri, 26 Oct 2018 00:29:34 -0700 Date: Fri, 26 Oct 2018 00:29:34 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for David Miller Message-ID: Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, guohanjun@huawei.com, peterz@infradead.org, davem@davemloft.net, hemant@linux.vnet.ibm.com, mingo@kernel.org, acme@redhat.com, wangnan0@huawei.com, alexander.shishkin@linux.intel.com, alexis.berlemont@gmail.com, dtolnay@gmail.com, namhyung@kernel.org, huawei.libin@huawei.com, hpa@zytor.com, milian.wolff@kdab.com Reply-To: namhyung@kernel.org, dtolnay@gmail.com, alexis.berlemont@gmail.com, alexander.shishkin@linux.intel.com, milian.wolff@kdab.com, huawei.libin@huawei.com, hpa@zytor.com, mingo@kernel.org, hemant@linux.vnet.ibm.com, davem@davemloft.net, tglx@linutronix.de, linux-kernel@vger.kernel.org, peterz@infradead.org, guohanjun@huawei.com, mhiramat@kernel.org, wangnan0@huawei.com, acme@redhat.com In-Reply-To: <20181017.120859.2268840244308635255.davem@davemloft.net> References: <20181017.120859.2268840244308635255.davem@davemloft.net> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf symbols: Set PLT entry/header sizes properly on Sparc Git-Commit-ID: d6afa561e1471ccfdaf7191230c0c59a37e45a5b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d6afa561e1471ccfdaf7191230c0c59a37e45a5b Gitweb: https://git.kernel.org/tip/d6afa561e1471ccfdaf7191230c0c59a37e45a5b Author: David Miller AuthorDate: Wed, 17 Oct 2018 12:08:59 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 18 Oct 2018 11:19:44 -0300 perf symbols: Set PLT entry/header sizes properly on Sparc Using the sh_entsize for both values isn't correct. It happens to be correct on x86... For both 32-bit and 64-bit sparc, there are four PLT entries in the PLT section. Signed-off-by: David S. Miller Cc: Alexander Shishkin Cc: Alexis Berlemont Cc: David Tolnay Cc: Hanjun Guo Cc: Hemant Kumar Cc: Li Bin Cc: Masami Hiramatsu Cc: Milian Wolff Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Cc: zhangmengting@huawei.com Fixes: b2f7605076d6 ("perf symbols: Fix plt entry calculation for ARM and AARCH64") Link: http://lkml.kernel.org/r/20181017.120859.2268840244308635255.davem@davemloft.net Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/symbol-elf.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 29770ea61768..6e70cc00c161 100644 --- a/tools/perf/util/symbol-elf.c +++ b/tools/perf/util/symbol-elf.c @@ -324,7 +324,17 @@ int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss) plt_entry_size = 16; break; - default: /* FIXME: s390/alpha/mips/parisc/poperpc/sh/sparc/xtensa need to be checked */ + case EM_SPARC: + plt_header_size = 48; + plt_entry_size = 12; + break; + + case EM_SPARCV9: + plt_header_size = 128; + plt_entry_size = 32; + break; + + default: /* FIXME: s390/alpha/mips/parisc/poperpc/sh/xtensa need to be checked */ plt_header_size = shdr_plt.sh_entsize; plt_entry_size = shdr_plt.sh_entsize; break;