浏览代码

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

git-svn-id: trunk@39278 -

nickysn 7 年之前
父节点
当前提交
46b82e3208
共有 1 个文件被更改,包括 6 次插入0 次删除
  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