diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-03-17 16:25:44 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-03-19 14:00:21 +0300 |
commit | e26e9ba288ce156b851504ebbb7d8a775572957c (patch) | |
tree | 8b75bb5bf547a6dc6cf84a3800eb23cccc539a21 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4a7f2032a350bc7eefd26709563f65216df3e2ce (diff) | |
download | llvm-e26e9ba288ce156b851504ebbb7d8a775572957c.zip llvm-e26e9ba288ce156b851504ebbb7d8a775572957c.tar.gz llvm-e26e9ba288ce156b851504ebbb7d8a775572957c.tar.bz2 |
[obj2yaml] - Stop dumping an empty sh_info field for SHT_RELA/SHT_REL sections.
`.rela.dyn` is a dynamic relocation section that normally has
no value in `sh_info` field.
The existent `elf-reladyn-section-shinfo.yaml` which tests this piece has issues:
1) It does not check the case when we have more than one `SHT_REL[A]`
section with `sh_info == 0` in the object. Because of this it did not catch the issue.
Currently we print an excessive "Info" field:
```
- Name: .rela.dyn
Type: SHT_RELA
EntSize: 0x0000000000000018
- Name: .rel.dyn
Type: SHT_REL
EntSize: 0x0000000000000010
Info: ' [1]'
```
2) It seems can be more generic. I've added a `rel-rela-section.yaml` instead.
Differential revision: https://reviews.llvm.org/D76281
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions