[all-commits] [llvm/llvm-project] cbeca7: [llvm-readobj][RISCV] Support dumping PT_RISCV_ATT...

luxufan via All-commits all-commits at lists.llvm.org
Wed Jun 29 00:16:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbeca742a4e6a8d713e6a825bb8f475e5b80821e
      https://github.com/llvm/llvm-project/commit/cbeca742a4e6a8d713e6a825bb8f475e5b80821e
  Author: luxufan <luxufan at iscas.ac.cn>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/ELF.h
    M llvm/test/tools/llvm-readobj/ELF/program-headers.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj][RISCV] Support dumping PT_RISCV_ATTRIBUTES

This patch drops the prefix `PT_RISCV_` when dumping `PT_RISCV_ATTRIBUTES`.

GNU readelf dumps it as `RISCV_ATTRIBUT`. Because GNU readelf uses
something like `%-14.14s` so only the first 14 bytes are printed.

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




More information about the All-commits mailing list