[all-commits] [llvm/llvm-project] ed93d1: [llvm-objdump] Support --symbolize-operands when t...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Mon Jul 18 16:51:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed93d157dec8133be1fc4be6e995e3d11da8d5b2
      https://github.com/llvm/llvm-project/commit/ed93d157dec8133be1fc4be6e995e3d11da8d5b2
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M llvm/test/tools/llvm-objdump/X86/elf-bbaddrmap-disassemble-symbolize-operands.yaml
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump] Support --symbolize-operands when there is a single SHT_LLVM_BB_ADDR_MAP section for all text sections

When linking, using `-Wl,-z,keep-text-section-prefix` results in multiple text sections while all `SHT_LLVM_BB_ADDR_MAP` sections are linked into a single one.
In such case, we should not read the corresponding section for each text section, and instead read all `SHT_LLVM_BB_ADDR_MAP` sections before disassembly.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D129924




More information about the All-commits mailing list