summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/boot/elfboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/elfboot.c b/src/boot/elfboot.c
index da0e909ced..272aee9d73 100644
--- a/src/boot/elfboot.c
+++ b/src/boot/elfboot.c
@@ -366,6 +366,7 @@ static int build_elf_segment_list(
struct segment *ptr;
int i;
memset(head, 0, sizeof(*head));
+ head->phdr_next = head->phdr_prev = head;
head->next = head->prev = head;
for(i = 0; i < headers; i++) {
struct segment *new;