forked from OSchip/llvm-project
![]() 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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Error.cpp | ||
Error.h | ||
coff2yaml.cpp | ||
dwarf2yaml.cpp | ||
elf2yaml.cpp | ||
macho2yaml.cpp | ||
minidump2yaml.cpp | ||
obj2yaml.cpp | ||
obj2yaml.h | ||
wasm2yaml.cpp | ||
xcoff2yaml.cpp |