Re: [PATCH v4 03/19] gendwarfksyms: Add address matching

2024-10-17 Thread Sami Tolvanen
Hi, On Thu, Oct 17, 2024 at 7:08 AM Petr Pavlu wrote: > > > @@ -22,9 +53,13 @@ static unsigned int for_each(const char *name, > > symbol_callback_t func, > > if (strcmp(match->name, name)) > > continue; > > > > + /* Call func for the match, and all

Re: [PATCH v4 03/19] gendwarfksyms: Add address matching

2024-10-17 Thread Petr Pavlu
On 10/8/24 20:38, Sami Tolvanen wrote: > The compiler may choose not to emit type information in DWARF for all > aliases, but it's possible for each alias to be exported separately. > To ensure we find type information for the aliases as well, read > {section, address} tuples from the symbol table

[PATCH v4 03/19] gendwarfksyms: Add address matching

2024-10-08 Thread Sami Tolvanen
The compiler may choose not to emit type information in DWARF for all aliases, but it's possible for each alias to be exported separately. To ensure we find type information for the aliases as well, read {section, address} tuples from the symbol table and match symbols also by address. Signed-off-