mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 14:25:57 +02: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');
|
||||
{ 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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user