Skip to content

Commit

Permalink
[runtime] Prevent symbol name clash (end).
Browse files Browse the repository at this point in the history
The `end` global variable is a non-standard symbol whose address is
the first valid address beyond the bss segment. Having it non-static
in `obstack.c` causes issues when loading `libskdb.so`.
  • Loading branch information
beauby committed May 22, 2024
1 parent 53fc468 commit d3231f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prelude/runtime/obstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
// head: The current position in the page.
// end: The end of the page.

struct sk_obstack* page = NULL;
char* head = NULL;
char* end = NULL;
static struct sk_obstack* page = NULL;
static char* head = NULL;
static char* end = NULL;

#ifdef SKIP32

Expand Down

0 comments on commit d3231f5

Please sign in to comment.