aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-04-07 18:20:51 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-04-22 12:36:00 +0300
commit317c4913c642f8f7fa0fb150fd5e656b59f20a4a (patch)
treec80336292de5207367719716e970c8bfa5cdd828 /llvm/lib/Support/StringRef.cpp
parent0736d1ccf32ba4e6fe860942d8a6d05f964f058e (diff)
downloadllvm-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