Re: [RFC PATCH 1/2] x86/relocs: Improve diagnostic for rejected absolute references
From: Linus Torvalds
Date: Mon Jan 27 2025 - 11:57:31 EST
On Mon, 27 Jan 2025 at 03:43, Ard Biesheuvel <ardb+git@xxxxxxxxxx> wrote:
>
> Absolute reference to symbol '.rodata+0x180' detected in .head.text (0xffffffff820cb4ba).
Do we have any symbol name lookup logic anywhere?
Because it would be much more helpful if it also printed out the
source symbol and target symbol name, not just the offsets in the
section..
Yes, with the offsets - and the lack of fatal error, so that the
vmlinux file stays around - you can now much more easily do some gdb
or objdump magic to then pinpoint what's up, but it still ends up
being very much a "you _really_ need to understand what's up" kind of
thing.
Linus