diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-04-07 18:20:51 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-04-22 12:36:00 +0300 |
commit | 317c4913c642f8f7fa0fb150fd5e656b59f20a4a (patch) | |
tree | c80336292de5207367719716e970c8bfa5cdd828 /llvm/lib/Support/StringRef.cpp | |
parent | 0736d1ccf32ba4e6fe860942d8a6d05f964f058e (diff) | |
download | llvm-317c4913c642f8f7fa0fb150fd5e656b59f20a4a.zip llvm-317c4913c642f8f7fa0fb150fd5e656b59f20a4a.tar.gz llvm-317c4913c642f8f7fa0fb150fd5e656b59f20a4a.tar.bz2 |
[obj2yaml] - Fix the issue with dumping empty sections when dumping program headers.
Imagine we have:
```
ProgramHeaders:
- Type: PT_LOAD
Flags: [ PF_W, PF_R ]
Sections:
- Section: .bar
VAddr: 0x2000
Sections:
- Name: .foo
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Address: 0x1000
- Name: .bar
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Address: 0x2000
```
Both `.foo` and `.bar` share the same starting file offset,
but `VA(.foo)` < `VA(PT_LOAD)`, we should not include it into segment.
This patch fixes the issue.
Differential revision: https://reviews.llvm.org/D77652
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions