diff options
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/efi/pe.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/boot/efi/pe.c b/src/boot/efi/pe.c index 9b1b10d4a1..e516417c07 100644 --- a/src/boot/efi/pe.c +++ b/src/boot/efi/pe.c @@ -153,17 +153,9 @@ static void locate_sections( assert(offsets); assert(sizes); - size_t prev_section_addr = 0; - for (size_t i = 0; i < n_table; i++) { const PeSectionHeader *sect = section_table + i; - if (in_memory) { - if (prev_section_addr > sect->VirtualAddress) - log_error("Overlapping PE sections detected. Boot may fail due to image memory corruption!"); - prev_section_addr = sect->VirtualAddress + sect->VirtualSize; - } - for (size_t j = 0; sections[j]; j++) { if (memcmp(sect->Name, sections[j], strlen8(sections[j])) != 0) continue; |