Em Thu, Sep 09, 2021 at 09:26:36PM +0200, Remi Bernon escreveu:
Instead of using the file offset in the debug file.
This fixes a regression from 00a3423492bc90be99e529a64f13fdd80a0e8c0a,
causing incorrect symbol resolution when debug file have been stripped
from non-debug sections (in which case its .text section is empty and
doesn't have any file position).
The debug files could also be created with a different file alignment,
and have different file positions from the mmap-ed binary, or have the
section reordered.
This instead looks for the file image base, using the corresponding bfd
*ABS* symbols. As PE symbols only have 4 bytes, it also needs to keep
.text section vma high bits.
I added a:
Fixes: 00a3423492bc90be ("perf symbols: Make dso__load_bfd_symbols() load PE files from debug cache only")
To help stable@xxxxxxxxxx to pick it, its on my local tree now.
It would be great to get a:
Reviewed-by: Nicholas Fraser <nfraser@xxxxxxxxxxxxxxx>
Can we have it, please?