瀏覽代碼

* Handle vo_has_section for constants

git-svn-id: trunk@17900 -
pierre 14 年之前
父節點
當前提交
a45b29911c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/ptconst.pas

+ 4 - 1
compiler/ptconst.pas

@@ -1483,7 +1483,10 @@ implementation
 
         { only now add items based on the symbolname, because it may }
         { have been modified by the directives parsed above          }
-        new_section(list,cursectype,lower(sym.mangledname),const_align(sym.vardef.alignment));
+        if vo_has_section in sym.varoptions then
+          new_section(list,sec_user,sym.section,const_align(sym.vardef.alignment))
+        else
+          new_section(list,cursectype,lower(sym.mangledname),const_align(sym.vardef.alignment));
         if (sym.owner.symtabletype=globalsymtable) or
            create_smartlink or
            (assigned(current_procinfo) and