From 2fd09437e93a8a0f83ca583ffccd1b1481614fa6 Mon Sep 17 00:00:00 2001 From: nickysn Date: Mon, 24 Feb 2014 14:01:44 +0000 Subject: [PATCH] + 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 - --- rtl/msdos/prt0stm.asm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rtl/msdos/prt0stm.asm b/rtl/msdos/prt0stm.asm index 9684914f6d..0c331697c7 100644 --- a/rtl/msdos/prt0stm.asm +++ b/rtl/msdos/prt0stm.asm @@ -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