Browse Source

MorphOS: workaround to prevent removal of __abox__ during --gc-sections

git-svn-id: trunk@45375 -
marcus 5 years ago
parent
commit
5a9fc1c01c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/morphos/si_prc.pp

+ 3 - 0
rtl/morphos/si_prc.pp

@@ -42,6 +42,9 @@ var
   newStack: Pointer;
   newStack: Pointer;
   newStackAligned: Pointer;
   newStackAligned: Pointer;
 begin
 begin
+  // prevent removal of the __abox__ symbol by --gc-sections
+  abox_signature := 1;
+  //
   MOS_ExecBase:=realExecBase;
   MOS_ExecBase:=realExecBase;
 
 
   newStack:=AllocVecTaskPooled(StkLen+16);
   newStack:=AllocVecTaskPooled(StkLen+16);