mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-06 04:01:44 +00:00
Fix the g_bct0 overflow issue, malloc now works
The linker chose the unused symbol from loader.c.
This commit is contained in:
parent
6d6ecb503a
commit
8f5a5acb06
2 changed files with 2 additions and 4 deletions
|
@ -6,9 +6,7 @@
|
||||||
#include "stage2.h"
|
#include "stage2.h"
|
||||||
#include "lib/ini.h"
|
#include "lib/ini.h"
|
||||||
|
|
||||||
const char *g_bct0 = NULL;
|
static loader_ctx_t g_loader_ctx = {0};
|
||||||
|
|
||||||
loader_ctx_t g_loader_ctx = {0};
|
|
||||||
|
|
||||||
loader_ctx_t *get_loader_ctx(void) {
|
loader_ctx_t *get_loader_ctx(void) {
|
||||||
return &g_loader_ctx;
|
return &g_loader_ctx;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "fs_dev.h"
|
#include "fs_dev.h"
|
||||||
|
|
||||||
/* TODO: Add a #define for this size, somewhere. Also, primary can only actually load 0x7000. */
|
/* TODO: Add a #define for this size, somewhere. Also, primary can only actually load 0x7000. */
|
||||||
char g_bct0[0x8000];
|
static char g_bct0[0x8000];
|
||||||
|
|
||||||
|
|
||||||
/* Allow for main(int argc, void **argv) signature. */
|
/* Allow for main(int argc, void **argv) signature. */
|
||||||
|
|
Loading…
Reference in a new issue