Re: [PATCH 2/3] riscv: Workaround mcount name prior to clang-13

2021-03-29 Thread Nick Desaulniers
On Thu, Mar 25, 2021 at 3:38 PM Nathan Chancellor wrote: > > Prior to clang 13.0.0, the RISC-V name for the mcount symbol was > "mcount", which differs from the GCC version of "_mcount", which results > in the following errors: > > riscv64-linux-gnu-ld: init/main.o: in function

[PATCH 2/3] riscv: Workaround mcount name prior to clang-13

2021-03-25 Thread Nathan Chancellor
Prior to clang 13.0.0, the RISC-V name for the mcount symbol was "mcount", which differs from the GCC version of "_mcount", which results in the following errors: riscv64-linux-gnu-ld: init/main.o: in function `__traceiter_initcall_level': main.c:(.text+0xe): undefined reference to `mcount'