Differences From Artifact [824a5b579c]:
- File
src/runtime/linklib/linklib.m
— part of check-in
[1e70711672]
at
2019-05-05 19:28:25
on branch trunk
— Create separate Amiga libraries for OS3 & MorphOS
Otherwise, it would be necessary to make unwinding work between 68k and
PPC code, and would get even worse with OS4 support.This also includes using separate .sfd files. (user: js, size: 11703) [annotate] [blame] [check-ins using]
To Artifact [e8efb8926f]:
- File src/runtime/linklib/linklib.m — part of check-in [77945f04a6] at 2019-05-05 22:22:29 on branch trunk — runtime/linklib: Fix compilation on MorphOS (user: js, size: 11808) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 | #include <proto/exec.h> #import "inline.h" #include <stdio.h> #include <stdlib.h> | | > > | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #include <proto/exec.h> #import "inline.h" #include <stdio.h> #include <stdlib.h> #if defined(OF_AMIGAOS_M68K) # include <stabs.h> #elif defined(OF_MORPHOS) # include <constructor.h> #endif #ifdef HAVE_SJLJ_EXCEPTIONS extern int _Unwind_SjLj_RaiseException(void *); #else extern int _Unwind_RaiseException(void *); #endif |
︙ | ︙ | |||
116 117 118 119 120 121 122 | CloseLibrary(ObjFWRTBase); } #if defined(OF_AMIGAOS_M68K) ADD2INIT(ctor, -2); ADD2EXIT(dtor, -2); #elif defined(OF_MORPHOS) | | > > > > > > | > > > | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | CloseLibrary(ObjFWRTBase); } #if defined(OF_AMIGAOS_M68K) ADD2INIT(ctor, -2); ADD2EXIT(dtor, -2); #elif defined(OF_MORPHOS) CONSTRUCTOR_P(ObjFWRT, 4000) { ctor(); return 0; } DESTRUCTOR_P(ObjFWRT, 4000) { dtor(); } #endif void __objc_exec_class(void *module) { /* * The compiler generates constructors that call into this, so it is |
︙ | ︙ |