Browse Source

* Use vo_has_section to test for user name section in insertbssdata

git-svn-id: trunk@17899 -
pierre 14 years ago
parent
commit
e6b5ce8557
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgutil.pas

+ 1 - 1
compiler/ncgutil.pas

@@ -2533,7 +2533,7 @@ implementation
             sectype:=sec_bss;
             sectype:=sec_bss;
           end;
           end;
         maybe_new_object_file(list);
         maybe_new_object_file(list);
-        if sym.section<>'' then
+        if vo_has_section in sym.varoptions then
           new_section(list,sec_user,sym.section,varalign)
           new_section(list,sec_user,sym.section,varalign)
         else
         else
           new_section(list,sectype,lower(sym.mangledname),varalign);
           new_section(list,sectype,lower(sym.mangledname),varalign);