Exclude AW flags for sec_fpc data for embedded and freertos targets.

This commit is contained in:
ccrause 2024-09-01 18:10:19 +02:00 committed by FPK
parent d43d581507
commit d53a81e2d9
3 changed files with 6 additions and 13 deletions

View File

@ -571,7 +571,9 @@ implementation
{ sectionname may rename those sections, so we do not write flags/progbits for them,
the assembler will ignore them/spite out a warning anyways }
if not(atype in [sec_data,sec_rodata,sec_rodata_norel]) and
not(asminfo^.id=as_solaris_as) then
not(asminfo^.id=as_solaris_as) and
not(atype=sec_fpc) and
not(target_info.system in (systems_embedded+systems_freertos)) then
begin
usesectionflags:=true;
usesectionprogbits:=true;

View File

@ -1010,7 +1010,6 @@ begin
Add(' fuse (rw!x) : ORIGIN = 0x820000, LENGTH = 1K');
Add(' lock (rw!x) : ORIGIN = 0x830000, LENGTH = 1K');
Add(' signature (rw!x) : ORIGIN = 0x840000, LENGTH = 1K');
Add(' fpcinfo : ORIGIN = 0xFF0000, LENGTH = 1K');
Add('}');
Add('_stack_top = 0x' + IntToHex(srambase+sramsize-1,4) + ';');
end;
@ -1271,7 +1270,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)) } > fpcinfo');
Add(' .fpc : { KEEP (*(.fpc .fpc.n_version .fpc.n_links)) }');
Add('}');
end;
{$endif AVR}

View File

@ -840,16 +840,12 @@ begin
{$ifdef RISCV32}
with linkres do
begin
Add('MEMORY');
Add('{');
Add(' dummy : org = 0x0, len = 0x100');
Add('}');
Add('SECTIONS');
Add('{');
Add(' .data :');
Add(' {');
Add(' KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
Add(' } > dummy');
Add(' }');
Add('}');
end;
{$endif RISCV32}
@ -857,16 +853,12 @@ begin
{$ifdef XTENSA}
with linkres do
begin
Add('MEMORY');
Add('{');
Add(' dummy : org = 0x0, len = 0x100');
Add('}');
Add('SECTIONS');
Add('{');
Add(' .data :');
Add(' {');
Add(' KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
Add(' } > dummy');
Add(' }');
Add('}');
end;
{$endif XTENSA}