Commit graph

24 commits

Author SHA1 Message Date
4d67f29fa3
Get imports *finally* working (remove special handling for functions and treat them as variables) 2025-06-30 15:16:20 +01:00
9d36dd8ec9
Do more work on imports 2025-06-30 00:03:06 +01:00
b646f28812 Tweak formatting, add CONTRIBUTING.md 2025-06-16 21:31:17 +01:00
dba2f4c54c Change how getXXFromYY functions handle errors (utilise errno) 2025-06-16 17:12:27 +01:00
1ff1e8f93f Reformat all code to modified Allman/BSD style 2025-06-16 15:31:35 +01:00
Vali0004
4e053b09ca Refactor code style, and add hardening
Signed-off-by: Aiden Isik <aidenisik+srht@member.fsf.org>
2025-06-16 14:27:12 +01:00
d82fd383f0 Rework executable type logic, add command line option to override it 2025-06-09 19:10:55 +01:00
aee6624e02 Rename getdata to gethdrdata 2025-06-03 18:43:37 +01:00
24c68d7ff1 Put better memory management routines in place (TODO: use them everywhere) 2025-06-03 01:27:05 +01:00
0005775f85 Add code for locating branch stubs for imported functions 2025-06-02 20:26:36 +01:00
4041036c65 Fix what currently exists of PE import reading 2025-06-01 23:23:46 +01:00
8ff9bb7582 Start working on import data parsing from PE (untested) 2025-06-01 19:14:14 +01:00
6c5274ea54 Set up data structures/helper functions for PE import parsing, make byte-swapping read functions more efficient 2025-06-01 15:49:47 +01:00
868e78d81b Remove redundant (and POSIX/MinGW-only) file size check 2025-05-30 18:35:13 +01:00
3108eb3d4a Add support for DLLs 2025-05-29 19:13:01 +01:00
cdb37b5099 Roll back ELF permission handling, it is no longer needed 2025-05-29 15:42:36 +01:00
bf3ee87a96 Add functionality to determine page types within the ELF section 2025-03-24 02:53:18 +00:00
f6d2615700 Handle TLS properly (it is unsupported) 2025-01-14 20:52:31 +00:00
884bf43844 Fix off-by-one error in PE validation 2025-01-10 14:04:45 +00:00
6eea1399bc Remove some redundancy, harden better against bad input, clean up a bit. 2025-01-10 03:02:15 +00:00
20127e7af9 Fix a few things, guard memory allocations with error checks 2025-01-09 19:06:41 +00:00
2cbd05c862 Add PE mapper: this program should now generate valid (if basic) XEX files 2025-01-03 19:51:06 +00:00
5c1b0a14c9 Implement page type determination 2024-10-26 00:16:39 +01:00
4681226be1 Implement basics of many important modules. 2024-10-25 09:18:19 +01:00