chore(radio): add LTO option for complete firmware to reduce X9D+2019 size (#7255)

This commit is contained in:
Raphael Coeffic
2026-04-20 07:17:59 +10:00
committed by GitHub
parent 16c7dbcfb9
commit ccc4fefd89
10 changed files with 23 additions and 17 deletions
@@ -39,7 +39,7 @@
#endif
#define NAKED __attribute__((naked))
#define BOOTSTRAP __attribute__((section(".bootstrap")))
#define BOOTSTRAP __attribute__((section(".bootstrap"), used))
// Linker script symbols
extern uint32_t _sisr_vector;
@@ -170,7 +170,7 @@ NAKED BOOTSTRAP void naked_copy()
);
}
void init_hooks()
__attribute__((used)) void init_hooks()
{
extern uint32_t __init_hook_array_start;
extern uint32_t __init_hook_array_end;