lkml.org 
[lkml]   [2022]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols
Date


Le 03/05/2022 à 01:52, Steven Rostedt a écrit :
> On Mon, 2 May 2022 14:44:56 +0000
> Christophe Leroy <christophe.leroy@csgroup.eu> wrote:
>
>> 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
\
 
 \ /
  Last update: 2022-05-03 13:21    [W:0.104 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site