+ added segment _null, belonging to group dgroup and class BEGDATA with the

hexadecimal pattern 01 in order to help catch storing data at location 0
  (this is compatible with Open Watcom's C library)

git-svn-id: trunk@26866 -
This commit is contained in:
nickysn 2014-02-24 14:01:44 +00:00
parent 526d84fd47
commit 2fd09437e9

View File

@ -370,6 +370,15 @@ not_enough_mem_msg:
segment bss class=bss
%ifndef __TINY__
segment _NULL class=BEGDATA
global __nullarea
__nullarea:
dd 01010101h, 01010101h, 01010101h, 01010101h
dd 01010101h, 01010101h, 01010101h, 01010101h
segment _AFTERNULL class=BEGDATA
dw 0
segment stack stack class=stack
resb 256
stacktop:
@ -378,5 +387,5 @@ not_enough_mem_msg:
%ifdef __TINY__
group dgroup text data bss
%else
group dgroup data bss stack
group dgroup _NULL _AFTERNULL data bss stack
%endif