Commit Graph

379 Commits

Author SHA1 Message Date
mid-kid
6693130c79 Fix depfiles only outputting half of the dependencies
Jesus christ what is this slip up even lmao
2025-05-30 01:52:41 +02:00
mid-kid
69c2257713 Add test for -M output, clearly wrong. 2025-05-30 01:40:23 +02:00
mid-kid
9a25f02877 Fix relative path generation on linux 2025-05-29 12:45:05 +02:00
mid-kid
fed57d1719 Allow building windows version on GCC versions lower than 13 2025-04-28 23:19:08 +02:00
mid-kid
7d29e79f3e Minor documentation improvements 2025-04-28 22:37:17 +02:00
mid-kid
d7ba4588a0 Version 0.1.2 2025-04-25 22:08:24 +02:00
mid-kid
b593e91129 Update wine headers to 10.0 2025-04-25 22:08:24 +02:00
mid-kid
7c4f22a37d Add wine executable wrapper for macos 2025-04-25 22:08:24 +02:00
mid-kid
2486f1bc14 Enable large file support
Apparently large file support also involves larger inodes. The lack of
this causes problems in some environments (e.g. WSL2).
2025-04-23 15:58:35 +02:00
mid-kid
e206911879 Update mw-libraries 2024-11-18 21:16:23 +01:00
mid-kid
63d0098e07 Remove debug print 2024-11-18 20:45:05 +01:00
mid-kid
da9418bf94 Fix install target in msys2 2024-11-18 20:39:59 +01:00
mid-kid
19b403fe55 Update relpath implementation 2024-11-18 20:23:30 +01:00
mid-kid
6bc5ad5c5d Fix relative path creation on windows 2024-11-18 19:37:11 +01:00
mid-kid
c1d532b837 Make it possible to build in msys2 2024-11-18 18:26:50 +01:00
mid-kid
8b6a837d3c Fix segfault in mwccarm-2.0 in depfile_build 2024-11-14 23:13:26 +01:00
mid-kid
eeb0d4bbf6 Find struct offsets for depfile_struct 2024-11-14 22:58:38 +01:00
mid-kid
33ede2d840 wrap: Fix windows segfault in utftotc 2024-11-14 21:23:37 +01:00
mid-kid
6fb7c82ff5 Undo b_sanitize option 2024-11-14 20:39:28 +01:00
mid-kid
81ad755440 wrap: Properly return exit code on SIGKILL, SIGIOT, etc 2024-11-14 20:29:54 +01:00
mid-kid
b00a95d1d8 Avoid UB in linux readlink 2024-11-14 20:06:36 +01:00
mid-kid
5f7df333d8 Fix UB and memory leaks in dump.c 2024-11-14 19:26:24 +01:00
mid-kid
20566600fa Rename more functions used by some crt0s 2024-11-11 23:06:48 +01:00
mid-kid
138ae17d61 Add todo for "-enc SJIS" support 2024-11-11 19:39:20 +01:00
mid-kid
39a999dc43 -wrap:ver takes precedence over -wrap:sdk 2024-11-08 12:56:22 +01:00
mid-kid
3fbdfeefdd Temporarily add -wrap:noipa for pokeplatinum... 2024-11-08 12:48:17 +01:00
mid-kid
d0ae835b8c Don't hardcode mw-libraries libvers 2024-11-08 10:26:59 +01:00
mid-kid
7d970ba9d5 Strip the binaries 2024-11-04 23:23:31 +01:00
mid-kid
e5faca72e2 Add release scripts 2024-11-04 23:15:32 +01:00
mid-kid
36f3493af0 Fix windows build 2024-11-04 23:09:01 +01:00
mid-kid
f7adcfd441 Add missing comment 2024-11-04 22:28:48 +01:00
mid-kid
ee1b0a4dd9 Remove a big chunk of wrapper code 2024-11-04 22:17:17 +01:00
mid-kid
83870eaf1b Port the depfile patch to all the versions 2024-11-04 21:55:30 +01:00
mid-kid
ccf2d63add Patch depfile generation to output relative paths 2024-11-04 21:19:31 +01:00
mid-kid
3585882fe4 Minor rearrangement 2024-11-04 17:58:36 +01:00
mid-kid
4238f4a1c3 Decompile path_join() 2024-11-04 17:56:08 +01:00
mid-kid
3c004bc5a3 More cleanups 2024-11-04 00:48:25 +01:00
mid-kid
fba27e30a2 Minor consistency 2024-11-04 00:44:53 +01:00
mid-kid
6a04657b6f Decompile most of the code involved in generating dep files 2024-11-04 00:37:13 +01:00
mid-kid
e2e96737b9 Add todo entry 2024-10-29 21:26:59 +01:00
mid-kid
196d50194d Update mw-executables 2024-10-05 01:49:08 +02:00
mid-kid
ff02d63561 Add tests for the new bug 2024-09-28 16:09:20 +02:00
mid-kid
1532580b07 Allow controlling the bug
This gives the user control over the values used during codegen.
2024-09-28 16:09:07 +02:00
mid-kid
b93391700b Decompile the function that exposes an UB bug
This function doesn't always clear all the memory it allocates. This
memory sometimes contains pointers, and through unfortunate
circumstances, interprets them to decide compiler output...
2024-09-28 12:49:20 +02:00
mid-kid
b02bcc0594 Add patch/r2scan.sh script to test patterns across versions 2024-09-28 12:48:45 +02:00
mid-kid
ddf44ce246 Better streamline linux and windows binary layouts 2024-09-28 12:48:45 +02:00
mid-kid
11a7541d13 Add tracing for GlobalAlloc/GlobalFree 2024-09-28 12:48:45 +02:00
mid-kid
9a6e38095f Avoid downgrading glibc if not possible
This is useful for, for example, `-static` builds, or when the lack of
PLT prevents finding the correct __libc_start_main...
2024-09-28 12:48:45 +02:00
mid-kid
ed04f1b82e Use our own implementation of GetLastError and GetFileAttributesA 2024-09-28 12:48:27 +02:00
mid-kid
a3027ef95b Explicitly fflush stdout, avoiding printf() and write() overlapping 2024-09-07 17:46:38 +02:00