[all-commits] [llvm/llvm-project] 02b5d3: [llvm-objdump] Support nonzero section addresses i...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Wed Oct 12 03:44:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 02b5d3bc3bb9108e8d18308395120f7e3161dbe8
https://github.com/llvm/llvm-project/commit/02b5d3bc3bb9108e8d18308395120f7e3161dbe8
Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
Date: 2022-10-12 (Wed, 12 Oct 2022)
Changed paths:
M llvm/test/tools/llvm-objdump/AMDGPU/elf-disassemble-symbolize-operands.yaml
M llvm/tools/llvm-objdump/llvm-objdump.cpp
Log Message:
-----------
[llvm-objdump] Support nonzero section addresses in addSymbolizer
The previous calculations seem to have assumed that the section address would be zero.
This is true for relocatable object files, but certainly not for linked files like shared libraries.
Fixed the calculations to make them identical to the "real" `getInstruction` call below & added a regression test.
Reviewed By: scott.linder, simon_tatham
Differential Revision: https://reviews.llvm.org/D135430
More information about the All-commits
mailing list