Avoid MSVCRT assertion on comparing phdr iterators

llvm-svn: 171591
This commit is contained in:
Reid Kleckner 2013-01-05 02:21:42 +00:00
parent c892591596
commit e974bd1be9
1 changed files with 3 additions and 1 deletions

View File

@ -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;