[all-commits] [llvm/llvm-project] 644e6d: [llvm-objdump] --disassemble-symbols: skip inline ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Dec 18 09:53:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 644e6d7d8be29b170d3fabe8e388ae5478b4adcf
      https://github.com/llvm/llvm-project/commit/644e6d7d8be29b170d3fabe8e388ae5478b4adcf
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M llvm/test/tools/llvm-objdump/X86/disassemble-zeroes-relocations.test
    M llvm/test/tools/llvm-objdump/X86/elf-disassemble-relocs-exec.test
    M llvm/test/tools/llvm-objdump/X86/elf-disassemble-relocs.test
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump] --disassemble-symbols: skip inline relocs from symbols that are not dumped (#75724)

When a section contains two functions x1 and x2, we incorrectly display
x1's relocations when dumping x2 for `--disassemble-symbols=x2 -r`.
Fix #75539 by ignoring these relocations.




More information about the All-commits mailing list