From cc498154aaa2548b17ac32988bfd7a41b26b4952 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Wed, 18 Aug 2021 13:06:16 +0200 Subject: [PATCH] moved binary_table from .bss to .data section to prevent overwriting it with zeros on startup --- kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.c b/kernel.c index 66e9863..f16c1bd 100644 --- a/kernel.c +++ b/kernel.c @@ -6,7 +6,7 @@ void create_processes_from_bin_table(); extern ProcessControlBlock processes[PROCESS_COUNT]; -loaded_binary binary_table[NUM_BINARIES]; +loaded_binary binary_table[NUM_BINARIES] __attribute__ ((section (".data"))); extern void init() {