[all-commits] [llvm/llvm-project] 41726f: [llvm-readobj] - Print "Unknown" when a program he...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Aug 25 03:06:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 41726f8d5b24bc449b48d1d9e09523ee266cc5e4
      https://github.com/llvm/llvm-project/commit/41726f8d5b24bc449b48d1d9e09523ee266cc5e4
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-25 (Tue, 25 Aug 2020)

  Changed paths:
    M lld/test/ELF/linkerscript/non-alloc-segment.s
    M lld/test/ELF/linkerscript/phdrs.s
    M llvm/test/tools/llvm-readobj/ELF/program-headers.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Print "Unknown" when a program header is unknown.

Currently, when a program header type is unknown, we dont print anything:

```
ProgramHeader {
  Type:  (0x60000000)
```

With this patch the output will be:

```
ProgramHeader {
  Type: Unknown (0x60000000)
```

It was discussed in D85526 and consistent with what we print for
'--sections' already, e.g.:

```
Section {
  Name: .sec
  Type: Unknown (0x7FFFFFFF)
}
```

Differential revision: https://reviews.llvm.org/D86213




More information about the All-commits mailing list