riscv/ftrace: Add RECORD_MCOUNT support
authorAlan Kao <alankao@andestech.com>
Tue, 13 Feb 2018 05:13:16 +0000 (13:13 +0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 3 Apr 2018 02:59:10 +0000 (19:59 -0700)
commita1d2a6b4cee858a2f27eebce731fbf1dfd72cb4e
tree02678da661691d5576560c22f7aa62621d3773c2
parent0adb32858b0bddf4ada5f364a84ed60b196dbcda
riscv/ftrace: Add RECORD_MCOUNT support

Now recordmcount.pl recognizes RISC-V object files. For the mechanism to
work, we have to disable the linker relaxation.

Cc: Greentime Hu <greentime@andestech.com>
Signed-off-by: Alan Kao <alankao@andestech.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/Kconfig
arch/riscv/Makefile
scripts/recordmcount.pl