Re: [PATCH v2] objtool: Report section name in elf_init_reloc_text_sym() warning

2024-05-06 Thread Josh Poimboeuf
On Mon, May 06, 2024 at 08:55:54AM -0700, Kees Cook wrote: > While tracking down issues with LKDTM's .rodata "function", I found > the warning from elf_init_reloc_text_sym() to be unhelpful because it > wasn't clear which calling path it was coming from. Report the sec->name > and rephrase the warn

[PATCH v2] objtool: Report section name in elf_init_reloc_text_sym() warning

2024-05-06 Thread Kees Cook
While tracking down issues with LKDTM's .rodata "function", I found the warning from elf_init_reloc_text_sym() to be unhelpful because it wasn't clear which calling path it was coming from. Report the sec->name and rephrase the warning a bit. Additionally check for NULL sym->name, which may happen.