mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:59:45 +02:00
* patch by ccrause: do not load .fpc* sections into avr microcontroller to save space, resolves #40160
This commit is contained in:
parent
b723178117
commit
8f7e61eef6
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user