Explorar o código

+ added the necessary changes for section based smartlinking to the msdos
startup code, behind ifdef __I8086_SMARTLINK_SECTIONS__

git-svn-id: trunk@39278 -

nickysn %!s(int64=7) %!d(string=hai) anos
pai
achega
46b82e3208
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      rtl/msdos/prt0comn.asm

+ 6 - 0
rtl/msdos/prt0comn.asm

@@ -1,5 +1,8 @@
 ; common startup code for all the memory models
 
+; uncomment this, if you want to use i8086 section based smartlinking:
+;%define __I8086_SMARTLINK_SECTIONS__
+
 %ifdef __TINY__
         %define __NEAR_CODE__
         %define __NEAR_DATA__
@@ -781,4 +784,7 @@ __nullarea:
     %else
         group DGROUP _NULL _AFTERNULL data bss
     %endif
+    %ifdef __I8086_SMARTLINK_SECTIONS__
+        group CGROUP _TEXT
+    %endif
 %endif