Wolfgang Thaller
884273fce1
use plain GetResource instead of Get1Resource during initialization ( #118 )
...
Get1Resource is not in Inside Mac 1-3 and doesn't work with the original system software. And at this point, we know that our own resource file is current.
2021-01-12 22:09:44 +01:00
Wolfgang Thaller
5fdd7b411f
relocate.c: some cleanup
2020-12-28 15:15:09 +01:00
Wolfgang Thaller
4c7b83bb75
add support for R_68K_PC32 relocations
2020-12-28 00:25:36 +01:00
Wolfgang Thaller
e5185d23c3
Switch tab-indented files to 4-space indent
2019-08-18 13:21:00 +02:00
Wolfgang Thaller
bbc3a1f049
Fix crashes caused by 68K relocations past the end of sections; still no idea what's going on.
2019-01-08 22:58:30 +01:00
Wolfgang Thaller
310ad344c2
Calling RecoverHandle on the wrong address is bad, so don't, for now. (see #33 )
2018-04-17 19:07:48 +02:00
Wolfgang Thaller
32a2da9547
New, more compact format for relocations
2017-09-30 23:03:17 +02:00
Wolfgang Thaller
4897a9e039
Fix cache flushing
2017-09-28 17:51:19 +02:00
Wolfgang Thaller
68c43b7a39
SegmentMap, code flushing, cleanup
2017-09-27 00:30:06 +02:00
Wolfgang Thaller
d08331584e
MultiSeg Apps: First working version (exceptions don't work)
2017-09-26 11:27:53 +02:00
Wolfgang Thaller
a4716081c2
moving closer to multiseg
2017-09-26 02:38:05 +02:00
Wolfgang Thaller
ce59176be5
explicitly store target section in relocations
2017-09-24 21:25:58 +02:00
Wolfgang Thaller
33a2744643
Take responsibility: don't use standard crtbegin/end anymore, now that we control the linker script
2017-09-24 20:04:11 +02:00
Wolfgang Thaller
0e3a0a5d18
output of elf2mac is now a piece of code with no headers with its entry point at the start. No more FLT file format.
2017-09-24 00:32:13 +02:00
Wolfgang Thaller
975c1f31c3
Some cleanups
2017-09-23 22:36:47 +02:00
Wolfgang Thaller
57906f91c1
zero-terminate relocation list
2017-09-23 20:11:38 +02:00
Wolfgang Thaller
5059b87fe4
relocate.c: reduce reliance on the FLT header (it has to go)
2017-09-23 19:56:36 +02:00
Wolfgang Thaller
95b59e3315
Support for older systems (64K ROMs). See issue #22 .
...
Thanks to @mdanh2002 for submitting the patch.
2017-04-11 20:44:47 +02:00
Wolfgang Thaller
836a8acb7b
properly call global destructors
2015-08-29 20:11:53 +02:00
Wolfgang Thaller
03a2a6d215
Fix a problem in startup code that suddenly popped up.
...
Crash sometimes caused by global codeHandle being allocated in BSS section.
While we're at it, clean up code, add optional assert()s, and even comments.
2015-07-21 23:16:59 +02:00
Wolfgang Thaller
f549ead8ac
have startup code ensure that code resource is locked.
2015-07-20 02:02:28 +02:00
Wolfgang Thaller
7aaa3174df
One more example: a System Extension (INIT)
2015-07-18 01:14:43 +02:00
Wolfgang Thaller
1cc5202ccf
Reorganize startup code (make some parts publicly available)
2015-07-17 21:07:03 +02:00