]> granicus.if.org Git - llvm/commit
[llvm-readelf] --notes: move 'Data size' column left by 1
authorFangrui Song <maskray@google.com>
Wed, 7 Aug 2019 09:13:11 +0000 (09:13 +0000)
committerFangrui Song <maskray@google.com>
Wed, 7 Aug 2019 09:13:11 +0000 (09:13 +0000)
commitce10b63096b36ab886198470afbf88a73daf7a19
treee8cfd49beb137ded87b88aa6afd1232d1904ea20
parentdb6746546950ea2a667a2c7ba24ced1bbdb1519e
[llvm-readelf] --notes: move 'Data size' column left by 1

readelf -n:

```
// "Data size" is not left justified
  Owner                 Data size       Description
  GNU                  0x00000010       NT_GNU_ABI_TAG (ABI version tag)
```

llvm-readelf -n (before):
```
// "Data size" column shifted by 1
  Owner                 Data size        Description
  GNU                   0x00000010       NT_GNU_ABI_TAG (ABI version tag)
```

llvm-readelf -n (after):
```
  Owner                Data size        Description
  GNU                  0x00000010       NT_GNU_ABI_TAG (ABI version tag)
```

This change is made to reduce the diff with readelf -n, so that it is
slightly easier to check what features readelf implements but we don't.

Reviewed By: grimar, jhenderson

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368138 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/gnu-notes.test
tools/llvm-readobj/ELFDumper.cpp