forked from OSchip/llvm-project
Avoid MSVCRT assertion on comparing phdr iterators
llvm-svn: 171591
This commit is contained in:
parent
c892591596
commit
e974bd1be9
|
@ -1213,7 +1213,9 @@ public:
|
||||||
ELFProgramHeader()
|
ELFProgramHeader()
|
||||||
: Chunk<target_endianness, max_align, is64Bits>(
|
: Chunk<target_endianness, max_align, is64Bits>(
|
||||||
"elfphdr",
|
"elfphdr",
|
||||||
Chunk<target_endianness, max_align, is64Bits>::K_ELFProgramHeader) { }
|
Chunk<target_endianness, max_align, is64Bits>::K_ELFProgramHeader) {
|
||||||
|
resetProgramHeaders();
|
||||||
|
}
|
||||||
|
|
||||||
bool addSegment(Segment<target_endianness, max_align, is64Bits> *segment) {
|
bool addSegment(Segment<target_endianness, max_align, is64Bits> *segment) {
|
||||||
Elf_Phdr *phdr = nullptr;
|
Elf_Phdr *phdr = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue