Re: [PATCH v7 4/4] perf report: LLVM-based symbol listing
From: Steinar H. Gunderson
Date: Sun May 26 2024 - 17:24:55 EST
On Sun, May 26, 2024 at 08:22:12PM +0200, Steinar H. Gunderson wrote:
> +
> + symbols__fixup_end(dso__symbols(dso), false);
> + symbols__fixup_duplicate(dso__symbols(dso));
> + dso__set_adjust_symbols(dso, true);
> + ret = 0;
Urgh, evidently I forgot to copy over dso->text_offset and dso->text_end
here, which I guess needs to happen.
Even after doing that, I still cannot annotate Windows symbols, though;
I get
Couldn't annotate RtlLeaveCriticalSection:
Internal error: Invalid -1 error code
This is true even with libbfd in a non-distro build (without any of my
LLVM patches), so there must be something else at play here.
I _can_ run a Windows binary in WINE and get the right symbols out with
perf report, though. So this leaves only demangling as the final piece
of the puzzle to make distro builds essentially equal to nondistro builds.
/* Steinar */