Thread (18 messages) 18 messages, 3 authors, 2022-08-16

Re: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2022-05-04 17:54:06
Also in: lkml, llvm

On Wed, 4 May 2022 16:50:58 +0000
Christophe Leroy [off-list ref] wrote:
In vmlinux, relocations are resolved, trampolines are installed for 
unreachable destinations and you don't anymore have a section with all 
the relocations to mcount. It means 'recordmcount' or whatever tool we 
use will have to read the code to find all direct calls to mcount, then 
find all trampolines to mcount then find all calls to those trampolines.
OK, so what you are saying is that in the object file, we can see the
site that calls mcount, but when it is linked, it may not call mcount,
but instead it will call a trampoline that will call mcount, thus the
tool will need to find these calls to the trampolines that call mcount
as well as the locations that call mcount directly.

Did I get that right?

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help