fix overalignment

This commit is contained in:
CrashOveride95
2021-06-22 23:39:24 -04:00
parent cb371fff52
commit 3e73a6c094
2 changed files with 5 additions and 4 deletions

View File

@@ -219,7 +219,7 @@ SECTIONS
BEGIN_NOLOAD(engine)
{
BUILD_DIR/src/engine*.o(.bss*);
. = ALIGN(0x100);
. = ALIGN(0x40);
}
END_NOLOAD(engine)

View File

@@ -10,14 +10,15 @@
// "#define printf(...) /* nothing */" wasn't an option.)
// This macro is separate from the gd_printf function; one probably
// forwarded to the other, but it is hard to tell in which direction.
#ifdef __GNUC__
#if defined(ISVPRINT) || defined(UNF)
#define printf osSyncPrintf
#else
#define printf(...) \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wunused-value\"") \
(__VA_ARGS__); \
_Pragma ("GCC diagnostic pop")
#else
#define printf
#endif
// structs