mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 13:09:32 +02:00
* on i8086 added section .fpc to the group 'dgroup'. This fixes a bug that caused the bss section to not be left out from the executable in tiny model, which caused, ironically, tiny model executables to be larger than the small model executables
git-svn-id: trunk@25525 -
This commit is contained in:
parent
fed009e998
commit
661e11ecb8
@ -1125,13 +1125,14 @@ interface
|
||||
{ we add empty declarations to make sure they exist, even if empty }
|
||||
AsmWriteLn('SECTION .rodata');
|
||||
AsmWriteLn('SECTION .data');
|
||||
AsmWriteLn('SECTION .fpc');
|
||||
{ WLINK requires class=bss in order to leave the BSS section out of the executable }
|
||||
AsmWriteLn('SECTION .bss class=bss');
|
||||
{ group these sections in the same segment }
|
||||
if current_settings.x86memorymodel=mm_tiny then
|
||||
AsmWriteLn('GROUP dgroup text rodata data bss')
|
||||
AsmWriteLn('GROUP dgroup text rodata data fpc bss')
|
||||
else
|
||||
AsmWriteLn('GROUP dgroup rodata data bss');
|
||||
AsmWriteLn('GROUP dgroup rodata data fpc bss');
|
||||
end;
|
||||
AsmWriteLn('SECTION ' + CodeSectionName);
|
||||
{$else i8086}
|
||||
|
Loading…
Reference in New Issue
Block a user