* set class=data to all data segments/sections on i8086

git-svn-id: trunk@27957 -
This commit is contained in:
nickysn 2014-06-14 16:01:22 +00:00
parent 8ad63788c7
commit 2dc8839af5
2 changed files with 4 additions and 4 deletions

View File

@ -1210,9 +1210,9 @@ interface
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^) + ' use16 class=code');
{ 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 }
AsmWriteLn('SECTION .rodata');
AsmWriteLn('SECTION .data');
AsmWriteLn('SECTION .fpc');
AsmWriteLn('SECTION .rodata class=data');
AsmWriteLn('SECTION .data class=data');
AsmWriteLn('SECTION .fpc class=data');
{ WLINK requires class=bss in order to leave the BSS section out of the executable }
AsmWriteLn('SECTION .bss class=bss');
if current_settings.x86memorymodel<>mm_tiny then

View File

@ -460,7 +460,7 @@ FPC_CHECK_NULLAREA:
ret
%endif
segment data
segment data class=data
mem_realloc_err_msg:
db 'Memory allocation error', 13, 10, '$'
not_enough_mem_msg: