Skip to content

Commit 2e27422

Browse files
monitor: fix patched variables to not be static
These need to be visible in the final object and hence should not be static. This caused an issue with 9a8aba7 when building in release mode since vm_names is only used in debug mode and so the compiler was (understandably) optimising it out. Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
1 parent 9a8aba7 commit 2e27422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monitor/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ seL4_IPCBuffer *__sel4_ipc_buffer;
8585

8686
char _stack[4096];
8787

88-
static char pd_names[MAX_PDS][MAX_NAME_LEN];
88+
char pd_names[MAX_PDS][MAX_NAME_LEN];
8989
seL4_Word pd_names_len;
90-
static char vm_names[MAX_VMS][MAX_NAME_LEN] __attribute__((unused));
90+
char vm_names[MAX_VMS][MAX_NAME_LEN] __attribute__((unused));
9191
seL4_Word vm_names_len;
9292

9393
seL4_Word fault_ep;

0 commit comments

Comments
 (0)