Browse Source

* .toc sections do not need a .csect on powerpc-macosclassic

florian 7 months ago
parent
commit
dc6057a112
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/aggas.pas

+ 2 - 1
compiler/aggas.pas

@@ -562,7 +562,8 @@ implementation
            end;
          system_powerpc_macosclassic:
            begin
-             writer.AsmWrite('.csect ');
+             if atype<>sec_toc then
+               writer.AsmWrite('.csect ');
            end;
          system_wasm32_wasi,
          system_wasm32_embedded: