From 8f7e61eef68f532103387b9d88d23dfdaaeb3cad Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 19 Feb 2023 20:19:20 +0100 Subject: [PATCH] * patch by ccrause: do not load .fpc* sections into avr microcontroller to save space, resolves #40160 --- compiler/systems/t_embed.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/systems/t_embed.pas b/compiler/systems/t_embed.pas index 9b97eccaa8..79e87f61d7 100644 --- a/compiler/systems/t_embed.pas +++ b/compiler/systems/t_embed.pas @@ -1120,7 +1120,6 @@ begin Add(' *(.rodata) /* We need to include .rodata here if gcc is used */'); Add(' *(.rodata*) /* with -fdata-sections. */'); Add(' *(.gnu.linkonce.d*)'); - add(' KEEP (*(.fpc .fpc.n_version .fpc.n_links))'); Add(' . = ALIGN(2);'); Add(' _edata = . ;'); Add(' PROVIDE (__data_end = .) ;'); @@ -1198,6 +1197,7 @@ begin Add(' /* DWARF Extension. */'); Add(' .debug_macro 0 : { *(.debug_macro) }'); Add(' .debug_addr 0 : { *(.debug_addr) }'); + Add(' .fpc (NOLOAD) : { KEEP (*(.fpc .fpc.n_version .fpc.n_links)) }'); Add('}'); end; {$endif AVR}