Browse Source

* support custom section names for Darwin platforms

git-svn-id: trunk@32396 -
Jonas Maebe 9 years ago
parent
commit
d303e15eae
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/aggas.pas

+ 5 - 0
compiler/aggas.pas

@@ -1603,6 +1603,11 @@ implementation
       begin
         if (target_info.system in systems_darwin) then
           case atype of
+            sec_user:
+              begin
+                result:='.section '+aname;
+                exit;
+              end;
             sec_bss:
               { all bss (lcomm) symbols are automatically put in the right }
               { place by using the lcomm assembler directive               }