lkml.org 
[lkml]   [2020]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.
Date
On Fri, 17 Jul 2020 16:33:38 +0200, gregory.herrero@oracle.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

\
 
 \ /
  Last update: 2020-07-24 14:15    [W:0.092 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site