Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754600AbdH2Ot7 (ORCPT ); Tue, 29 Aug 2017 10:49:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:49004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751788AbdH2Ot6 (ORCPT ); Tue, 29 Aug 2017 10:49:58 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2838421A93 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Date: Tue, 29 Aug 2017 11:49:55 -0300 From: Arnaldo Carvalho de Melo To: Li Bin Cc: Namhyung Kim , "linux-kernel@vger.kernel.org" , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Masami Hiramatsu , Hemant Kumar , alexis.berlemont@gmail.com, dtolnay@gmail.com, Milian Wolff , Wang Nan , guohanjun@huawei.com, zhangmengting@huawei.com Subject: Re: [PATCH] perf symbols: Fix plt entry calculation for ARM and AARCH64 Message-ID: <20170829144955.GA4831@kernel.org> References: <1496622849-21877-1-git-send-email-huawei.libin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 26 Em Tue, Jun 06, 2017 at 10:47:26AM +0900, Namhyung Kim escreveu: > On Mon, Jun 5, 2017 at 9:34 AM, Li Bin wrote: > > On x86, the plt header size is as same as the plt entry size, and > > can be identified from shdr's sh_entsize of the plt. > > But we cann't assume that the sh_entsize of the plt shdr is always > > the plt entry size in all architecture, and the plt header size may > > be not as same as the plt entry size in some architecure. > > > > On ARM, the plt header size is 20 bytes and the plt entry size is 12 > > bytes(don't consider the FOUR_WORD_PLT case) > > that refer to the binutils implementation. > > NOTES: > > In addition to ARM and AARCH64, other architectures, such as > > s390/alpha/mips/parisc/poperpc/sh/sparc/xtensa also need to consider > > this issue. > > > > Signed-off-by: Li Bin > > I don't know other archs, but this change looks ok to me.. > > Acked-by: Namhyung Kim Thanks, and sorry for the delay in processing this one. - Arnaldo