[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <159559281273.30177.1152636464895708228.b4-ty@arm.com>
Date: Fri, 24 Jul 2020 13:14:56 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: "gregory.herrero@...cle.com" <gregory.herrero@...cle.com>,
linux-kernel@...r.kernel.org
Cc: Will Deacon <will@...nel.org>, rostedt@...dmis.org,
Mark Rutland <mark.rutland@....com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.
On Fri, 17 Jul 2020 16:33:38 +0200, gregory.herrero@...cle.com wrote:
> Currently, if a section has a relocation to '_mcount' symbol, a new
> __mcount_loc entry will be added whatever the relocation type is.
> This is problematic when a relocation to '_mcount' is in the middle of a
> section and is not a call for ftrace use.
>
> Such relocation could be generated with below code for example:
> bool is_mcount(unsigned long addr)
> {
> return (target == (unsigned long) &_mcount);
> }
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.
https://git.kernel.org/arm64/c/ea0eada45632
--
Catalin
Powered by blists - more mailing lists