Commit Graph

  • adcdecd9ec Merge pull request #31 from autc04/gcc-7.2 Wolfgang Thaller 2017-10-08 16:43:19 +02:00
  • f2c5029218 On Tiger, automatically apply the -fno-PIE workaround/hack (see previous commit); also, check that --host-c*-compiler options have been specified Wolfgang Thaller 2017-10-08 10:40:47 +02:00
  • 1a7ff978fe hacks to make gcc7.2 compile on Tiger Wolfgang Thaller 2017-10-08 02:36:59 +02:00
  • f65c69f656 newlib now has a threads.h header file, which conflicts with Apple's Threads.h on case-insensitive file systems. Suppress it. Wolfgang Thaller 2017-10-07 21:38:09 +02:00
  • d045936cb6 fix AutomatedTestSuite elmulator detection Wolfgang Thaller 2017-10-07 16:04:16 +02:00
  • 3eff6ff36f libretro/malloc.c: "implement" memalign. Just hope that NewPtr aligns enough anyway (16 byte on PowerPC) Wolfgang Thaller 2017-10-07 16:10:05 +02:00
  • 9edd199c83 prepare-headers: work around another incompatibility between CGBase and newlib Wolfgang Thaller 2017-10-07 16:09:00 +02:00
  • b2790cf0fb newlib: add definitions for _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE. Wolfgang Thaller 2017-10-07 16:08:32 +02:00
  • b30c823f2b gcc m68k: put macsbug symbols in the same section as the function again, because gcc7 sometimes puts two functions in one section. --mac-strip-macsbug has no effect for now. Wolfgang Thaller 2017-10-07 16:07:53 +02:00
  • 6edc940bd2 newlib: re-instate aix-style setjmp.S Wolfgang Thaller 2017-10-07 16:06:11 +02:00
  • 1f10508c9b fix merge problem: newlib configure.host - powerpc-macos target Wolfgang Thaller 2017-10-07 16:05:49 +02:00
  • 46c502e5da fix merge problem: struct field alignment in powerpc-macos gcc Wolfgang Thaller 2017-10-07 16:04:54 +02:00
  • 82c625ae6f fix AutomatedTestSuite elmulator detection Wolfgang Thaller 2017-10-07 16:04:16 +02:00
  • 19ab4d99ae Merge branch 'upstream' into gcc-7.2 Wolfgang Thaller 2017-10-07 02:46:50 +02:00
  • 65c83606fb Update gcc to 7.2.0, binutils to 2.29, newlib to 2.5.0 Wolfgang Thaller 2017-10-07 02:16:47 +02:00
  • 1d95fb6dd9 remove elf2flt Wolfgang Thaller 2017-10-07 02:08:05 +02:00
  • 24bee35d90 implement UnloadSeg on 68K Wolfgang Thaller 2017-10-07 02:02:42 +02:00
  • 28779ec31e add a way to manually specify what goes in which segment Wolfgang Thaller 2017-10-07 01:59:39 +02:00
  • 207b094372 Merge pull request #30 from autc04/automated-tests Wolfgang Thaller 2017-10-07 01:46:30 +02:00
  • ed0b24a6ad improve documentation Wolfgang Thaller 2017-10-07 01:37:53 +02:00
  • 3223176f5b fix previous commit Wolfgang Thaller 2017-10-05 15:47:24 +02:00
  • 24d9c90686 Rez: create empty / data-only output file if output file name is explicitly given, but no input Wolfgang Thaller 2017-10-05 15:33:50 +02:00
  • bcfcbb90a3 fix data forks in MacBinary Wolfgang Thaller 2017-10-05 15:32:57 +02:00
  • fd5a1e57f2 build-toolchain.bash: add missing options to help message Wolfgang Thaller 2017-10-05 15:32:12 +02:00
  • c6f6cddb68 LaunchAPPL: improve detection for classic/carbon Wolfgang Thaller 2017-10-05 15:30:58 +02:00
  • da6426b207 Tiger compatibility; most importantly, we want a C99 compiler Wolfgang Thaller 2017-10-05 14:52:17 +02:00
  • d4f3670056 AutomatedTests: set defaults for RETRO68_LAUNCH_METHOD on old Mac OS X platforms, where "classic" and "carbon" are the obvious choices Wolfgang Thaller 2017-10-04 17:34:00 +02:00
  • d8ad527e0f Update documentation Wolfgang Thaller 2017-10-04 16:13:00 +02:00
  • 507ba9debf LaunchAPPL --make-executable: add a #!/.../LaunchCFMApp to a mac app Wolfgang Thaller 2017-10-04 02:03:26 +02:00
  • bd38a209ba AutomatedTests improvements Wolfgang Thaller 2017-10-04 01:56:05 +02:00
  • f9bcc39ce0 LaunchAPPL/MiniVMac: fix the fix :-) Wolfgang Thaller 2017-10-03 22:47:31 +02:00
  • 39112683a3 LaunchAPPL: make minivmac backend work with the mac version Wolfgang Thaller 2017-10-03 22:26:24 +02:00
  • 5808ab19f6 LaunchAPPL/MiniVMac: minor fixes Wolfgang Thaller 2017-10-03 20:51:53 +02:00
  • 05cb15ae5b missing #include Wolfgang Thaller 2017-10-03 20:09:03 +02:00
  • 9732a26782 AutomatedTests: remove hard-coded config in CMakeLists. Wolfgang Thaller 2017-10-03 19:36:49 +02:00
  • 9a50b29581 ResourceFile: error handling... Wolfgang Thaller 2017-10-03 18:44:23 +02:00
  • 687fd2a779 LaunchAPPL: more cleanup, config file support Wolfgang Thaller 2017-10-03 18:44:06 +02:00
  • c3f16cd873 LaunchAPPL: remove our own copy of the boot sector Wolfgang Thaller 2017-10-03 18:17:16 +02:00
  • 5fd28f94b0 LaunchAPPL/minivmac: use boot sector from given system disk, duh... Wolfgang Thaller 2017-10-03 13:03:35 +02:00
  • 28b11ae719 LaunchCFM: better conditionalization for Classic/Carbon backends Wolfgang Thaller 2017-10-03 13:00:53 +02:00
  • 62831a7391 fix ResourceFile data fork reading Wolfgang Thaller 2017-10-03 12:08:54 +02:00
  • 2885f5d8cd LaunchAPPL: Classic and Carbon methods Wolfgang Thaller 2017-10-03 11:57:56 +02:00
  • 5f998b85be ResourceFiles: read data forks from MacBinary and AppleSingle Wolfgang Thaller 2017-10-03 00:17:31 +02:00
  • eb9dd5aaff AutomatedTests: clean up CMakeLists.txt Wolfgang Thaller 2017-10-02 23:43:35 +02:00
  • c01a99637a add a missing error check (one of many) Wolfgang Thaller 2017-10-02 23:13:07 +02:00
  • 5961d1884d LaunchAPPL: modularize; Executor and MiniVMac backends for now Wolfgang Thaller 2017-10-02 23:06:50 +02:00
  • 270cafaab4 improve LaunchAPPL Wolfgang Thaller 2017-10-01 23:36:50 +02:00
  • 360a9858e3 Automated tests! Wolfgang Thaller 2017-10-01 02:42:02 +02:00
  • 8b5f06cb9b Fix #28: Don't pass Elf2Mac options on PPC. There is life beyond the 68K. Wolfgang Thaller 2017-10-02 09:20:50 +02:00
  • 38a2bf10c9 Merge pull request #27 from autc04/segments Wolfgang Thaller 2017-09-30 23:41:47 +02:00
  • 04b54dc296 update .gitignore Wolfgang Thaller 2017-09-30 23:38:41 +02:00
  • c10538e350 build Samples/Dialog as single-segment app (to prevent the code path from rotting) Wolfgang Thaller 2017-09-30 23:38:23 +02:00
  • 32a2da9547 New, more compact format for relocations Wolfgang Thaller 2017-09-30 23:03:17 +02:00
  • a68112b08d enable -ffunction-sections for libgcc and libc Wolfgang Thaller 2017-09-30 03:01:49 +02:00
  • 821bc04a7a set -ffunction-sections option on libretro and libConsole, and use gc-sections in Samples/HelloWorld. Wolfgang Thaller 2017-09-29 22:31:35 +02:00
  • 80443795d4 ConvertObj: add MacsBug names Wolfgang Thaller 2017-09-29 22:21:32 +02:00
  • bf6728b156 Elf2Mac: --mac-single option for generating single-segment apps Wolfgang Thaller 2017-09-29 22:17:50 +02:00
  • 04174d1b55 Elf2Mac: option for stripping macsbug symbols Wolfgang Thaller 2017-09-29 22:04:11 +02:00
  • 70be98cb62 put macsbug name in separate section so it can be stripped out - and hack ld so that it won't be stripped out by -gc-sections Wolfgang Thaller 2017-09-29 22:02:21 +02:00
  • c95a59f75e ConvertOBJ: sort modules to go easy on 16-bit relative references Wolfgang Thaller 2017-09-29 15:15:48 +02:00
  • 5c968dc589 missing #include Wolfgang Thaller 2017-09-29 15:15:20 +02:00
  • 58a39b22d6 Elf2Mac: clean up, split up Wolfgang Thaller 2017-09-29 01:43:54 +02:00
  • 16b6ab7a7a remove elfutils directory Wolfgang Thaller 2017-09-29 02:01:57 +02:00
  • c70816ace7 hack libelf to work Wolfgang Thaller 2017-09-28 23:44:08 +02:00
  • 3df5e3bd13 libelf: portable endianness detection Wolfgang Thaller 2017-09-28 00:33:38 +02:00
  • bf7325099e Take only libelf from elfutils and simplify the build system Wolfgang Thaller 2017-09-28 00:10:50 +02:00
  • 8240fa9358 Use a simple CMake build for libelf (autoconf is causing trouble on Mac OS 10.4) Wolfgang Thaller 2017-09-27 23:56:05 +02:00
  • 4897a9e039 Fix cache flushing Wolfgang Thaller 2017-09-28 17:51:19 +02:00
  • c757fb9520 Name CODE resources, it's just cooler Wolfgang Thaller 2017-09-27 06:44:00 +02:00
  • 68c43b7a39 SegmentMap, code flushing, cleanup Wolfgang Thaller 2017-09-27 00:30:06 +02:00
  • 8a2038601a Exceptions now work in multiseg Wolfgang Thaller 2017-09-26 20:37:28 +02:00
  • d08331584e MultiSeg Apps: First working version (exceptions don't work) Wolfgang Thaller 2017-09-26 11:27:53 +02:00
  • a4716081c2 moving closer to multiseg Wolfgang Thaller 2017-09-26 02:38:05 +02:00
  • ce59176be5 explicitly store target section in relocations Wolfgang Thaller 2017-09-24 21:25:58 +02:00
  • 33a2744643 Take responsibility: don't use standard crtbegin/end anymore, now that we control the linker script Wolfgang Thaller 2017-09-24 20:04:11 +02:00
  • 68150e1c23 Elf2Mac: start preparing for multiseg Wolfgang Thaller 2017-09-24 20:03:01 +02:00
  • a5dad80454 Console: make ConsoleWindow immune to constructor ordering Wolfgang Thaller 2017-09-24 19:59:54 +02:00
  • 284126e13c Elf2Mac now generates CODE resources itself; --mac-flat for the old functionality Wolfgang Thaller 2017-09-24 15:40:19 +02:00
  • 6a3e6863c5 Elf2Mac: Clean up code and prepare for segments Wolfgang Thaller 2017-09-24 14:16:58 +02:00
  • a6bc7b5de6 elf2flt is no longer the right name Wolfgang Thaller 2017-09-24 02:21:10 +02:00
  • 0eb20cae6f fix bootstrap Wolfgang Thaller 2017-09-24 02:20:50 +02:00
  • 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. Wolfgang Thaller 2017-09-24 00:32:13 +02:00
  • 6c1e76280e don't include relocs for undefined symbols - they should stay at absolute NULL Wolfgang Thaller 2017-09-24 00:29:50 +02:00
  • 975c1f31c3 Some cleanups Wolfgang Thaller 2017-09-23 22:36:47 +02:00
  • 406471dd79 AppleDouble support Wolfgang Thaller 2017-09-23 21:02:22 +02:00
  • 57906f91c1 zero-terminate relocation list Wolfgang Thaller 2017-09-23 20:11:38 +02:00
  • 5059b87fe4 relocate.c: reduce reliance on the FLT header (it has to go) Wolfgang Thaller 2017-09-23 19:56:36 +02:00
  • 278780642e make DEBUGBREAK flag for add_application work again Wolfgang Thaller 2017-09-23 04:00:30 +02:00
  • 008ffe1401 Elf2Mac, a replacement for elf2flt. Right now this is not an improvement, but the plan is to work towards multi-segment apps. Wolfgang Thaller 2017-09-23 03:56:37 +02:00
  • d21be3b4e1 Add elfutils-0.170 Wolfgang Thaller 2017-09-21 21:04:42 +02:00
  • 0ecc07538f Make things work with Universal Interfaces 3.0 Wolfgang Thaller 2017-09-21 15:41:10 +02:00
  • 48d530bf49 PEFTools/PEF.h tweak Wolfgang Thaller 2017-09-19 00:46:36 +02:00
  • 49b9ef60c4 Merge pull request #24 from DrJosh9000/patch-1 Wolfgang Thaller 2017-08-03 10:12:46 +04:30
  • db984e580e brew install boost --c++11 Josh Deprez 2017-05-31 15:28:30 +10:00
  • 0b99d3d330 build-toolchain: Reinstate fallback to pre-built import libraries, for now Wolfgang Thaller 2017-04-25 01:45:45 +02:00
  • d93277459b Add ResInfo utility, for figuring out info about encoded resource forks Wolfgang Thaller 2017-04-25 01:44:26 +02:00
  • 3c4350b435 ResourceFiles: read-only AppleDouble support (._filename convention) Wolfgang Thaller 2017-04-25 01:17:45 +02:00
  • d55bee477e MakeImport/MakePEF: communicate exact member name to MakePEF even if file system does not support MacRoman-encoded filenames. Wolfgang Thaller 2017-04-25 01:16:09 +02:00
  • 3858c32613 MakeImport: forget about plan B. If there's no 'cfrg' resource, we can't know the shlib name to link to at runtime. Wolfgang Thaller 2017-04-25 01:16:52 +02:00
  • 61e33b198c MakeImport: deal with absence of 'cfrg' resource Wolfgang Thaller 2017-04-23 11:28:48 +02:00