mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-30 05:57:09 +01:00
* declare the group dgroup even in i8086 far data memory models
git-svn-id: trunk@27348 -
This commit is contained in:
parent
c38e52bb27
commit
17a8c03e41
@ -1199,21 +1199,18 @@ interface
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
AsmWriteLn('SECTION ' + CodeSectionName + ' use16 class=code');
|
AsmWriteLn('SECTION ' + CodeSectionName + ' use16 class=code');
|
||||||
if current_settings.x86memorymodel in x86_near_data_models then
|
{ NASM complains if you put a missing section in the GROUP directive, so }
|
||||||
begin
|
{ we add empty declarations to make sure they exist, even if empty }
|
||||||
{ NASM complains if you put a missing section in the GROUP directive, so }
|
AsmWriteLn('SECTION .rodata');
|
||||||
{ we add empty declarations to make sure they exist, even if empty }
|
AsmWriteLn('SECTION .data');
|
||||||
AsmWriteLn('SECTION .rodata');
|
AsmWriteLn('SECTION .fpc');
|
||||||
AsmWriteLn('SECTION .data');
|
{ WLINK requires class=bss in order to leave the BSS section out of the executable }
|
||||||
AsmWriteLn('SECTION .fpc');
|
AsmWriteLn('SECTION .bss class=bss');
|
||||||
{ WLINK requires class=bss in order to leave the BSS section out of the executable }
|
{ group these sections in the same segment }
|
||||||
AsmWriteLn('SECTION .bss class=bss');
|
if current_settings.x86memorymodel=mm_tiny then
|
||||||
{ group these sections in the same segment }
|
AsmWriteLn('GROUP dgroup text rodata data fpc bss')
|
||||||
if current_settings.x86memorymodel=mm_tiny then
|
else
|
||||||
AsmWriteLn('GROUP dgroup text rodata data fpc bss')
|
AsmWriteLn('GROUP dgroup rodata data fpc bss');
|
||||||
else
|
|
||||||
AsmWriteLn('GROUP dgroup rodata data fpc bss');
|
|
||||||
end;
|
|
||||||
if paratargetdbg in [dbg_dwarf2,dbg_dwarf3,dbg_dwarf4] then
|
if paratargetdbg in [dbg_dwarf2,dbg_dwarf3,dbg_dwarf4] then
|
||||||
begin
|
begin
|
||||||
AsmWriteLn('SECTION .debug_frame use32 class=DWARF');
|
AsmWriteLn('SECTION .debug_frame use32 class=DWARF');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user