Commit Graph

484 Commits

Author SHA1 Message Date
Wolfgang Thaller
f98a7672f3 Elf2Mac: silence debug output 2018-01-06 03:11:48 +01:00
Wolfgang Thaller
04a63e00df Elf2Mac: support custom entry points 2018-01-06 03:11:48 +01:00
Wolfgang Thaller
3d791de14e fixes to add_application: rsrc files can now come from binary directory as well 2018-01-06 03:11:47 +01:00
Wolfgang Thaller
2aed6b69f9
Merge pull request #42 from antscode/master
Updated intl from 0.12.1 to 0.19.8.1 to fix compilation errors.
2018-01-03 17:25:25 +01:00
anthony
c539261ef4 Updated intl from 0.12.1 to 0.19.8.1 to fix compilation errors.
Added missing Cygwin packages to readme.
2018-01-03 17:17:53 +11:00
Wolfgang Thaller
853031fa31 INTERFACE_O should be a cached CMake variable 2017-12-05 21:58:39 +01:00
Wolfgang Thaller
dad26c5f3a Clarify license section of README 2017-12-05 21:54:56 +01:00
Wolfgang Thaller
d7976cae6b add __PPC__ to list of predefined symbols for powerpc-macos 2017-12-04 22:11:33 +01:00
Wolfgang Thaller
2536e4ff65 add a missing cache flush, fixing some crashes on real 68040s 2017-10-28 01:35:15 +02:00
Wolfgang Thaller
8563f68461 Merge pull request #36 from antscode/cygwin
Windows/Cygwin fixes and documentation
2017-10-19 16:26:54 +02:00
Anthony Super
5c6328edef Added newline to end of .gitattributes 2017-10-18 08:37:02 +11:00
Anthony Super
1c1604fbcc Windows/Cygwin fixes and documentation 2017-10-18 08:28:14 +11:00
Wolfgang Thaller
ce224eb58d Fix single-segment apps (fixes #33) 2017-10-16 01:47:21 +02:00
Wolfgang Thaller
c47772e62f make functions return pointers in D0 on 68K. See issue #35. *RECOMPILE STRONGLY RECOMMENDED*
This is compatible with MPW and incompatible with Codewarrior.
2017-10-15 14:24:25 +02:00
Wolfgang Thaller
d7e89e2fd5 ConvertObj: deal with 32-bit patches. Can now convert OpenTransport.o (see #35) 2017-10-15 12:57:06 +02:00
Wolfgang Thaller
3ecff9bcc6 ConvertObj: check command line args (fixes #34) 2017-10-15 12:48:44 +02:00
Wolfgang Thaller
ed80c2c09f LaunchAPPL: add new method 'SSH' and move utility functions to separate module 2017-10-09 15:45:36 +02:00
Wolfgang Thaller
1657cf599c make _open_r more independent of interfaces&libraries version 2017-10-09 15:43:52 +02:00
Wolfgang Thaller
4a78f4a90c __errno should not be here 2017-10-09 15:43:18 +02:00
Wolfgang Thaller
e2a3ea6da8 don't use seek when writing MacBinary 2017-10-09 15:14:32 +02:00
Wolfgang Thaller
0e2eb677e4 LaunchAPPL: support reading MacBinary from stdin 2017-10-08 22:35:27 +02:00
Wolfgang Thaller
19277b3d2e declaring _sbss as an array prevents warnings when zeroing it 2017-10-08 20:55:24 +02:00
Wolfgang Thaller
bc200ad489 For *-apple-macos-gcc, -Wno-trigraphs is now the default.
('????' is a common four character code on Classic MacOS, we don't want warnings)
2017-10-08 20:55:04 +02:00
Wolfgang Thaller
a11377f5ae test: Segments 2017-10-08 19:30:54 +02:00
Wolfgang Thaller
e8063b8cf6 C library/system calls: clean up, implement open, read, write, close, lseek; clean up the command line gcc passes to ld 2017-10-08 19:28:10 +02:00
Wolfgang Thaller
adcdecd9ec Merge pull request #31 from autc04/gcc-7.2
Update to GCC 7.2, binutils 2.29, newlib 2.5
2017-10-08 16:43:19 +02:00
Wolfgang Thaller
f2c5029218 On Tiger, automatically apply the -fno-PIE workaround/hack (see previous commit); also, check that --host-c*-compiler options have been specified 2017-10-08 10:40:47 +02:00
Wolfgang Thaller
1a7ff978fe hacks to make gcc7.2 compile on Tiger 2017-10-08 08:46:32 +02:00
Wolfgang Thaller
f65c69f656 newlib now has a threads.h header file, which conflicts with Apple's Threads.h on case-insensitive file systems. Suppress it.
It doesn't work anyway, as we would need to supply at least a platform-specific machine/_threads.h for it.
2017-10-07 21:38:09 +02:00
Wolfgang Thaller
d045936cb6 fix AutomatedTestSuite elmulator detection 2017-10-07 16:44:59 +02:00
Wolfgang Thaller
3eff6ff36f libretro/malloc.c: "implement" memalign. Just hope that NewPtr aligns enough anyway (16 byte on PowerPC) 2017-10-07 16:10:05 +02:00
Wolfgang Thaller
9edd199c83 prepare-headers: work around another incompatibility between CGBase and newlib 2017-10-07 16:09:00 +02:00
Wolfgang Thaller
b2790cf0fb newlib: add definitions for _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE.
TODO: figure out where they should really go.
2017-10-07 16:08:32 +02:00
Wolfgang Thaller
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. 2017-10-07 16:07:53 +02:00
Wolfgang Thaller
6edc940bd2 newlib: re-instate aix-style setjmp.S 2017-10-07 16:06:11 +02:00
Wolfgang Thaller
1f10508c9b fix merge problem: newlib configure.host - powerpc-macos target 2017-10-07 16:05:49 +02:00
Wolfgang Thaller
46c502e5da fix merge problem: struct field alignment in powerpc-macos gcc 2017-10-07 16:04:54 +02:00
Wolfgang Thaller
82c625ae6f fix AutomatedTestSuite elmulator detection 2017-10-07 16:04:16 +02:00
Wolfgang Thaller
19ab4d99ae Merge branch 'upstream' into gcc-7.2
# Conflicts:
#	binutils/bfd/config.bfd
#	binutils/ld/configure.tgt
#	gcc/gcc/c-family/c-common.c
#	gcc/gcc/c/c-parser.c
#	gcc/gcc/calls.c
#	gcc/gcc/config/m68k/m68k.c
#	gcc/gcc/config/rs6000/rs6000.c
#	gcc/gcc/config/rs6000/rs6000.opt
#	hfsutils/COPYING
#	hfsutils/install-sh
2017-10-07 02:46:50 +02:00
Wolfgang Thaller
65c83606fb Update gcc to 7.2.0, binutils to 2.29, newlib to 2.5.0 2017-10-07 02:16:47 +02:00
Wolfgang Thaller
1d95fb6dd9 remove elf2flt 2017-10-07 02:08:05 +02:00
Wolfgang Thaller
24bee35d90 implement UnloadSeg on 68K 2017-10-07 02:02:42 +02:00
Wolfgang Thaller
28779ec31e add a way to manually specify what goes in which segment 2017-10-07 01:59:39 +02:00
Wolfgang Thaller
207b094372 Merge pull request #30 from autc04/automated-tests
Automated tests
2017-10-07 01:46:30 +02:00
Wolfgang Thaller
ed0b24a6ad improve documentation 2017-10-07 01:37:53 +02:00
Wolfgang Thaller
3223176f5b fix previous commit 2017-10-05 15:47:24 +02:00
Wolfgang Thaller
24d9c90686 Rez: create empty / data-only output file if output file name is explicitly given, but no input 2017-10-05 15:33:50 +02:00
Wolfgang Thaller
bcfcbb90a3 fix data forks in MacBinary 2017-10-05 15:32:57 +02:00
Wolfgang Thaller
fd5a1e57f2 build-toolchain.bash: add missing options to help message 2017-10-05 15:32:12 +02:00
Wolfgang Thaller
c6f6cddb68 LaunchAPPL: improve detection for classic/carbon 2017-10-05 15:30:58 +02:00