Make Debug_BBA symbol global in __start.c (#2982)

This fixes an issue where the virtual address of the symbol would
be appended after the name making it impossible to automatically
match the symbol on more than one version.
This commit is contained in:
Max Roncace
2025-12-21 15:36:00 -05:00
committed by GitHub
parent ee32f5db55
commit c69e31bd0f
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -875,5 +875,5 @@ void* OSGetThreadSpecific(s32 index) {
}
#include "global.h"
extern u8 Debug_BBA_804516D0;
u8 Debug_BBA_804516D0 ATTRIBUTE_ALIGN(8);
extern u8 Debug_BBA;
u8 Debug_BBA ATTRIBUTE_ALIGN(8);
+3 -3
View File
@@ -17,7 +17,7 @@ __declspec(section ".init") extern void __init_data(void);
__declspec(section ".init") extern void __init_hardware(void);
__declspec(section ".init") extern void __flush_cache(void* addr, u32 size);
extern u8 Debug_BBA_804516D0;
extern u8 Debug_BBA;
__declspec(section ".init") void __check_pad3(void) {
if ((*(u16*)0x800030E4 & 0xEEF) == 0xEEF) {
@@ -26,11 +26,11 @@ __declspec(section ".init") void __check_pad3(void) {
}
void __set_debug_bba(void) {
Debug_BBA_804516D0 = 1;
Debug_BBA = 1;
}
__declspec(section ".init") u8 __get_debug_bba(void) {
return Debug_BBA_804516D0;
return Debug_BBA;
}
__declspec(section ".init") asm void __start(void) {