Differences From Artifact [715e972f4a]:
- File
src/runtime/linklib/linklib.m
— part of check-in
[57f0d10b19]
at
2018-05-26 15:18:42
on branch trunk
— runtime/linklib: Use init/exit list on amiga-gcc
The init list is executed before all constructors and the exit list
after all destructors. This makes sure the runtime library is present
during all constructors and destructors.Use -2 so that objfw.library later on can use -1. (user: js, size: 10032) [annotate] [blame] [check-ins using]
To Artifact [b705064e93]:
- File
src/runtime/linklib/linklib.m
— part of check-in
[a37a78d51b]
at
2018-06-03 23:08:34
on branch trunk
— runtime/linklib: Do not pass exit() to Amiga lib
The only reason the runtime should ever terminate the process is because
a fatal error occurred, and for that it should use abort(). (user: js, size: 10016) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
67 68 69 70 71 72 73 | struct objc_libc libc = { .malloc = malloc, .calloc = calloc, .realloc = realloc, .free = free, .vfprintf = vfprintf, .fflush = fflush, | < | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | struct objc_libc libc = { .malloc = malloc, .calloc = calloc, .realloc = realloc, .free = free, .vfprintf = vfprintf, .fflush = fflush, .abort = abort, #ifdef HAVE_SJLJ_EXCEPTIONS ._Unwind_SjLj_RaiseException = _Unwind_SjLj_RaiseException, #else ._Unwind_RaiseException = _Unwind_RaiseException, #endif ._Unwind_DeleteException = _Unwind_DeleteException, |
︙ | ︙ |