Differences From Artifact [6215304d3d]:
- File
src/runtime/linklib/linklib.m
— part of check-in
[482698c5be]
at
2018-05-06 21:39:06
on branch trunk
— runtime: Make Amiga library work with -fbaserel
This currently uses __saveds on all exported functions for simplicity.
As an optimization, __saveds can be removed from some functions later
after careful verification that no code path starting from that function
accesses any data. (user: js, size: 6014) [annotate] [blame] [check-ins using]
To Artifact [d9e16b337b]:
- File src/runtime/linklib/linklib.m — part of check-in [c5c95f9fe2] at 2018-05-11 19:42:29 on branch trunk — runtime: Let objc_init() take a version number (user: js, size: 6102) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
57 58 59 60 61 62 63 | libc = (struct objc_libc){ .malloc = malloc, .calloc = calloc, .realloc = realloc, .free = free, .vfprintf = vfprintf, | | > | > > > | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | libc = (struct objc_libc){ .malloc = malloc, .calloc = calloc, .realloc = realloc, .free = free, .vfprintf = vfprintf, .fflush = fflush, .exit = exit, .abort = abort, ._Unwind_RaiseException = _Unwind_RaiseException, ._Unwind_DeleteException = _Unwind_DeleteException, ._Unwind_GetLanguageSpecificData = _Unwind_GetLanguageSpecificData, ._Unwind_GetRegionStart = _Unwind_GetRegionStart, ._Unwind_GetDataRelBase = _Unwind_GetDataRelBase, ._Unwind_GetTextRelBase = _Unwind_GetTextRelBase, ._Unwind_GetIP = _Unwind_GetIP, ._Unwind_GetGR = _Unwind_GetGR, ._Unwind_SetIP = _Unwind_SetIP, ._Unwind_SetGR = _Unwind_SetGR, ._Unwind_Resume = _Unwind_Resume, .__register_frame_info = __register_frame_info, .__deregister_frame_info = __deregister_frame_info, }; if (!objc_init(1, &libc, stdout, stderr)) { fputs("Failed to initialize objfw_rt.library!\n", stderr); abort(); } initialized = true; } OF_DESTRUCTOR() { CloseLibrary(ObjFWRTBase); |
︙ | ︙ |