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

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

From: Christophe Leroy <hidden>
Date: 2022-05-03 11:20:42
Also in: lkml, llvm


Le 03/05/2022 à 01:52, Steven Rostedt a écrit :
On Mon, 2 May 2022 14:44:56 +0000
Christophe Leroy [off-list ref] wrote:
quoted
If we do that after the linking, won't it be a nightmare with the
trampolines installed by the linker when the destination is over the 24
bits limit ?
Not sure what you mean. The locations I'm talking about is the full
address saved in the __mcount_loc table (data section).
Maybe I misunderstood. When you say 'after linking', do you mean vmlinux 
or vmlinux.o ?

In vmlinux, the addresses to be saved in __mcount_loc table might not 
contain anymore a call to _mcount but a call to a trampoline that jumps 
to _mcount, in case _mcount is too far from the said location at link 
time. That's what I meant.

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