From f1987ecefc609a4185ce4d9c1b208897a6254571 Mon Sep 17 00:00:00 2001 From: Aetias Date: Sat, 27 Apr 2024 12:24:17 +0200 Subject: Add `elfkill` --- include/global.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 -- cgit v1.2.3