Re: [PATCH 2/6] kallsyms: Emit symbol at the holes in the text

2024-07-21 Thread Zheng Yejian
On 2024/7/20 22:14, Masahiro Yamada wrote: On Thu, Jul 18, 2024 at 12:45 PM Zheng Yejian wrote: On 2024/7/16 16:33, Masahiro Yamada wrote: On Thu, Jun 13, 2024 at 10:36 PM Zheng Yejian wrote: When a weak type function is overridden, its symbol will be removed from the symbol table, but its

Re: [PATCH 2/6] kallsyms: Emit symbol at the holes in the text

2024-07-20 Thread Masahiro Yamada
On Thu, Jul 18, 2024 at 12:45 PM Zheng Yejian wrote: > > On 2024/7/16 16:33, Masahiro Yamada wrote: > > On Thu, Jun 13, 2024 at 10:36 PM Zheng Yejian > > wrote: > >> > >> When a weak type function is overridden, its symbol will be removed > >> from the symbol table, but its code will not be remo

Re: [PATCH 2/6] kallsyms: Emit symbol at the holes in the text

2024-07-17 Thread Zheng Yejian
On 2024/7/16 16:33, Masahiro Yamada wrote: On Thu, Jun 13, 2024 at 10:36 PM Zheng Yejian wrote: When a weak type function is overridden, its symbol will be removed from the symbol table, but its code will not be removed. Besides, due to lacking of size for kallsyms, kernel compute function siz

Re: [PATCH 2/6] kallsyms: Emit symbol at the holes in the text

2024-07-16 Thread Masahiro Yamada
On Thu, Jun 13, 2024 at 10:36 PM Zheng Yejian wrote: > > When a weak type function is overridden, its symbol will be removed > from the symbol table, but its code will not be removed. Besides, > due to lacking of size for kallsyms, kernel compute function size by > substracting its symbol address

[PATCH 2/6] kallsyms: Emit symbol at the holes in the text

2024-06-13 Thread Zheng Yejian
When a weak type function is overridden, its symbol will be removed from the symbol table, but its code will not be removed. Besides, due to lacking of size for kallsyms, kernel compute function size by substracting its symbol address from its next symbol address (see kallsyms_lookup_size_offset())