mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-25 20:57:17 +01:00
* set class=data to all data segments/sections on i8086
git-svn-id: trunk@27957 -
This commit is contained in:
parent
8ad63788c7
commit
2dc8839af5
@ -1210,9 +1210,9 @@ interface
|
|||||||
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^) + ' use16 class=code');
|
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^) + ' use16 class=code');
|
||||||
{ NASM complains if you put a missing section in the GROUP directive, so }
|
{ NASM complains if you put a missing section in the GROUP directive, so }
|
||||||
{ we add empty declarations to make sure they exist, even if empty }
|
{ we add empty declarations to make sure they exist, even if empty }
|
||||||
AsmWriteLn('SECTION .rodata');
|
AsmWriteLn('SECTION .rodata class=data');
|
||||||
AsmWriteLn('SECTION .data');
|
AsmWriteLn('SECTION .data class=data');
|
||||||
AsmWriteLn('SECTION .fpc');
|
AsmWriteLn('SECTION .fpc class=data');
|
||||||
{ WLINK requires class=bss in order to leave the BSS section out of the executable }
|
{ WLINK requires class=bss in order to leave the BSS section out of the executable }
|
||||||
AsmWriteLn('SECTION .bss class=bss');
|
AsmWriteLn('SECTION .bss class=bss');
|
||||||
if current_settings.x86memorymodel<>mm_tiny then
|
if current_settings.x86memorymodel<>mm_tiny then
|
||||||
|
|||||||
@ -460,7 +460,7 @@ FPC_CHECK_NULLAREA:
|
|||||||
ret
|
ret
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
segment data
|
segment data class=data
|
||||||
mem_realloc_err_msg:
|
mem_realloc_err_msg:
|
||||||
db 'Memory allocation error', 13, 10, '$'
|
db 'Memory allocation error', 13, 10, '$'
|
||||||
not_enough_mem_msg:
|
not_enough_mem_msg:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user