Fix compilation error caused by voiceprompts data section definitions

This commit is contained in:
Silvano Seva 2023-07-26 12:15:42 +02:00
parent 7c2c61f948
commit 7ce3a8a605
2 changed files with 7 additions and 6 deletions

View File

@ -1,9 +1,10 @@
.section .note.GNU-stack,"" .section .note.GNU-stack,""
.section .rodata .section .rodata
.global _voiceprompts_start .global _vpdata_start
.global _voiceprompts_end .global _vpdata_end
_voiceprompts_start: _vpdata_start:
.incbin "../voiceprompts.vpc" .incbin "../voiceprompts.vpc"
_voiceprompts_end:
.set _vpdata_end, .

View File

@ -114,8 +114,8 @@ static long long vpStartTime;
#ifdef VP_USE_FILESYSTEM #ifdef VP_USE_FILESYSTEM
static FILE *vpFile = NULL; static FILE *vpFile = NULL;
#else #else
extern unsigned char _vpdata_start asm("_voiceprompts_start"); extern unsigned char _vpdata_start;
extern unsigned char _vpdata_end asm("_voiceprompts_end"); extern unsigned char _vpdata_end;
unsigned char *vpData = &_vpdata_start; unsigned char *vpData = &_vpdata_start;
#endif #endif