summaryrefslogtreecommitdiff
path: root/src/code/z_common_data.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-08-02 17:31:15 -0700
committerGitHub <noreply@github.com>2024-08-02 20:31:15 -0400
commit0da402b9de9b6874a7e04f8e9e8333079f61a75e (patch)
treed7ff6691b3be25d543745adc3d177f54406f5d54 /src/code/z_common_data.c
parent078e21f6c62b5acb4744cefd97718f63bc622831 (diff)
Automate fixing BSS ordering (#2009)
* Automate fixing BSS ordering * Typo * Some cleanups * Move pragma check after printing BSS info * Some proofreading * multiprocessing, require version, some colors * Tweak output * Black + mypy * Move logging and sys.exit out of helper functions * Use stdout instead of stderr in fix_bss.py * Add suggestion to conflicting offsets error Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Remove var = list[T]() * Improve error handling Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Add error if no pointers to BSS * Add comment about process_file_worker * Only print updates if stdout is a tty * Use new binary-search-esque candidate generation algorithm Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Add Wikipedia link * More comment tweaks --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/code/z_common_data.c')
-rw-r--r--src/code/z_common_data.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/code/z_common_data.c b/src/code/z_common_data.c
index a0588d929..0f40faddc 100644
--- a/src/code/z_common_data.c
+++ b/src/code/z_common_data.c
@@ -1,9 +1,6 @@
#include "global.h"
-// For retail BSS ordering, the block number of D_8015FA88 must be 0 or
-// just above (the exact upper bound depends on the block numbers assigned to
-// extern variables declared in headers).
-#pragma increment_block_number 60
+#pragma increment_block_number "gc-eu:128 gc-eu-mq:128"
ALIGNED(16) SaveContext gSaveContext;
u32 D_8015FA88;