diff options
| author | Aetias <144526980+AetiasHax@users.noreply.github.com> | 2024-04-27 21:41:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-27 21:41:57 +0200 |
| commit | 0d17d1087f3df2fdd72eac89370eadcefb336f50 (patch) | |
| tree | 90e66b1bbee5dd45843c89b63111f4d81d0a3533 /include | |
| parent | 72a752995e764c022c8e5fb42ac9ebb6c029d817 (diff) | |
| parent | a5786ac8dc9694685955cbd23ee1c6f06dacb360 (diff) | |
Merge pull request #35 from AetiasHax/elfkill
Add `elfkill`, document the build system
Diffstat (limited to 'include')
| -rw-r--r-- | include/global.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index e3d80975..10a927aa 100644 --- a/include/global.h +++ b/include/global.h @@ -15,6 +15,9 @@ #define NONMATCH(name) asm name #endif +// KILL(name) causes a function to be excluded from the output ROM, see elfkill.cpp +#define KILL(name) + // Prevent the IDE from reporting errors that the compiler/linker won't report #ifdef __INTELLISENSE__ #endif @@ -28,4 +31,7 @@ // Define .sbss variables by using #pragma section sbss begin|end #pragma define_section sbss ".data" ".sbss" +// Force variables to be in .data by using #pragma section force_data begin|end +#pragma define_section force_data ".data" ".data" + #endif |
