On Fri, 17 Jul 2020 16:33:38 +0200, [email protected] 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

Reply via email to