Re: DW_AT_comp_dir and O= usage not working with objdump -dS, perf probe, etc

From: Thomas Weißschuh
Date: Thu May 01 2025 - 02:59:57 EST


Hi Arnaldo,

On 2025-04-30 20:34:34-0300, Arnaldo Carvalho de Melo wrote:
> I noticed recently while testing some other patches that
> disassembling with objdump -dS didn't work when building the kernel with
> O= as it sets it to the build dir, not to where the sources are, for
> instance:

<snip>

> I haven't checked, ran out of time today, but I think this may be
> involved:
>
> commit 97282e6d380db8a07120fe1b794ac969ee4a3b5c
> Author: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> Date: Sat Mar 22 10:03:16 2025 +0100
>
> x86: drop unnecessary prefix map configuration

It should be caused by this one:

commit cacd22ce69585a91c386243cd662ada962431e63
Author: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Date: Sat Mar 15 14:20:14 2025 +0100

kbuild: make all file references relative to source root


There is already another report about objdump here:
https://lore.kernel.org/lkml/aBEttQH4kimHFScx@xxxxxxxxx/

Let's continue the discussion there.


Thomas