Re: [PATCH] recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.
From: Catalin Marinas
Date: Fri Jul 24 2020 - 08:15:01 EST
On Fri, 17 Jul 2020 16:33:38 +0200, gregory.herrero@xxxxxxxxxx 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.