On Mon, 9 Sep 2024 17:34:48 +0300 Mike Rapoport <rppt@xxxxxxxxxx> wrote:
This is insane, just force BUILDTIME_MCOUNT_SORTThe comment in ftrace.c says "... while mcount loc in modules can not be sorted at build time" I don't know enough about objtool, but I'd presume it's because the sorting should happen after relocations, no?
IIRC, the sorting at build time uses scripts/sorttable.c, which from what I can tell, only gets called on vmlinux. -- Steve