summaryrefslogtreecommitdiff
path: root/src/boot/elfboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/elfboot.c')
-rw-r--r--src/boot/elfboot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot/elfboot.c b/src/boot/elfboot.c
index 272aee9d73..eeb4e40cd4 100644
--- a/src/boot/elfboot.c
+++ b/src/boot/elfboot.c
@@ -440,6 +440,12 @@ static int load_elf_segments(
end = dest + ptr->s_memsz;
middle = dest + ptr->s_filesz;
start_offset = ptr->s_offset;
+#if 1
+ if (ptr->s_filesz == 0) {
+ start_offset = offset;
+ }
+#endif
+
printk_spew("[ 0x%016lx, %016lx, 0x%016lx) <- %016lx\n",
(unsigned long)dest,