[all-commits] [llvm/llvm-project] d86079: [llvm-readelf] Print more information for RELR

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 19 09:22:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d86079f93c9f59d31f2cebb55dce24783070bd77
      https://github.com/llvm/llvm-project/commit/d86079f93c9f59d31f2cebb55dce24783070bd77
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

  Changed paths:
    M lld/test/ELF/pack-dyn-relocs.s
    M lld/test/ELF/partition-pack-dyn-relocs.s
    M llvm/test/tools/llvm-readobj/ELF/relr-relocs.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] Print more information for RELR

llvm-readelf/llvm-readobj print RELR as REL relocations with a fixed
type (e.g. `R_*_RELATIVE`). GNU readelf printed only addresses and have
recently switched to a more descritive style that includes a symbolic
address column (symbolized using .symtab/.strtab) (milestone: binutils
2.43).

This patch implements the new GNU style, which seems superior to the
current REL style and essentially obsoletes LLVM-specific --raw-relr
(`printRelrReloc`).

Pull Request: https://github.com/llvm/llvm-project/pull/89162



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list