diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/stddef.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/stddef.h b/src/include/stddef.h index 3a030e14a1..60e34595ee 100644 --- a/src/include/stddef.h +++ b/src/include/stddef.h @@ -49,4 +49,11 @@ typedef unsigned int wint_t; #define ROMSTAGE_CONST #endif +/* Work around non-writable data segment in execute-in-place romstage on x86. */ +#if defined(__PRE_RAM__) && CONFIG_ARCH_X86 +#define MAYBE_STATIC +#else +#define MAYBE_STATIC static +#endif + #endif /* STDDEF_H */ |