Commit Graph

5598 Commits

Author SHA1 Message Date
ptitSeb
aeca62699e Added REX 85 TEST opcode 2021-03-04 17:52:05 +01:00
ptitSeb
d48da61142 Added REX 8B opcode 2021-03-04 17:49:33 +01:00
ptitSeb
2a99644638 Added E8 CALL opcode 2021-03-04 17:46:05 +01:00
ptitSeb
73332983fc Added first attempt at function wrapping 2021-03-04 17:33:03 +01:00
ptitSeb
292897da46 Preparing to execute wrapped function 2021-03-04 13:02:45 +01:00
ptitSeb
c24149e40f Added REX FF opcodes 2021-03-04 12:18:40 +01:00
ptitSeb
2101c52e2d Added REX 8D LEA opcode 2021-03-04 12:00:04 +01:00
ptitSeb
abb74f7f76 Added REX 81/83 opcodes 2021-03-04 11:56:06 +01:00
ptitSeb
ca9ca0ca48 Added Rex 50..5F PUSH/POP opcodes 2021-03-04 11:45:27 +01:00
ptitSeb
2aa303bb02 Fix REX handling and added REX 89 opcode 2021-03-04 11:35:56 +01:00
ptitSeb
9613868aa4 First x86_64 opcode executed :) 2021-03-04 11:21:26 +01:00
ptitSeb
8cccb02e6b Not sure yet on what registers are expected thoses variables 2021-03-04 11:19:55 +01:00
ptitSeb
0ac4f5483d Preparing defered flags handling 2021-03-04 10:09:25 +01:00
ptitSeb
1e971dde99 A bit more work on syscall, to avoid old deprecated ones 2021-03-04 09:39:25 +01:00
ptitSeb
b34a919590 Small change to wrapped ld-linux to make it more portable 2021-03-04 08:27:30 +01:00
ptitSeb
9bc6cd4ed1 A bit more work to prepare x86_64 emulation 2021-03-03 21:19:38 +01:00
ptitSeb
12c8d4340b Some work on Mod/RM 64bits decoding (with RIP relative addressing) 2021-03-03 20:57:16 +01:00
ptitSeb
8ecc312f38 Fixed trace and prepare rex decoding 2021-03-03 18:54:43 +01:00
ptitSeb
3d2f6745b4 Ready to emulate main elf 2021-03-03 17:35:46 +01:00
ptitSeb
1c9e2c998f Do ElfPlt on main elf 2021-03-03 17:33:26 +01:00
ptitSeb
be17349a5d Added some X86_64 RelocA and a few wrapped function (wrapper still not correct anyway) 2021-03-03 17:32:24 +01:00
ptitSeb
9aabe9c97f Added rt and pthread wrapped lib 2021-03-03 17:06:00 +01:00
ptitSeb
745a68f556 Preload libs if needed 2021-03-03 16:48:56 +01:00
ptitSeb
5fe45a9341 Add symbols from main elf to maplib 2021-03-03 16:47:44 +01:00
ptitSeb
f4829a8ce4 More infrastructure added to elf and x64 emu 2021-03-03 16:43:42 +01:00
ptitSeb
f73fbd3cee Added Protection handling 2021-03-02 22:21:23 +01:00
ptitSeb
b4851d8dd5 Added bridge handling 2021-03-02 17:55:55 +01:00
ptitSeb
8b56536bb1 More preparation on main x64emu_t structure 2021-03-02 15:49:33 +01:00
ptitSeb
da3311fe10 Another batch of printf/scanf format errors 2021-03-02 15:46:11 +01:00
ptitSeb
e8799c69a8 Fixed a bunch of print format error 2021-03-02 15:42:09 +01:00
ptitSeb
eb6c4594e1 Added basic thread infrastructure 2021-03-02 15:18:23 +01:00
ptitSeb
1b9d1dc609 Added Zydis lib support for Trace enabled build 2021-03-02 14:49:36 +01:00
ptitSeb
a6143f33ce More x64emu preparation 2021-03-02 14:14:17 +01:00
ptitSeb
9ae5d61212 Initializing x64emu structure 2021-03-02 11:49:09 +01:00
ptitSeb
997b5c6b50 Added some x86_64 regs and emu infrastructure 2021-03-02 11:45:50 +01:00
ptitSeb
be92787329 Preparing auxval handling 2021-03-02 10:51:27 +01:00
ptitSeb
26201d7e70 More elf loader and parsing and stack preparing 2021-03-02 10:47:22 +01:00
ptitSeb
542a2a0775 Detecting tcmalloc now 2021-03-02 10:32:13 +01:00
ptitSeb
a2a78a4edc Load elf in memory 2021-03-01 18:02:26 +01:00
ptitSeb
4079491d5e Main elf memory allocated 2021-03-01 16:05:58 +01:00
ptitSeb
d7f8625e63 Future custommem helper init'd and fini'd 2021-03-01 16:04:05 +01:00
ptitSeb
a8637ca5d6 Added main elf to context 2021-03-01 16:02:48 +01:00
ptitSeb
311842a43a Read elf header of launched executable 2021-03-01 15:52:05 +01:00
ptitSeb
4ea8ebb336 Added x86_64 version of libgcc_s and libstdc++ 2021-02-28 14:20:11 +01:00
ptitSeb
e753c19da1 Added some minimal set of source (now box64 compile and say hello at least) 2021-02-28 14:19:04 +01:00
ptitSeb
7b50468b61 Refined .gitignore 2021-02-28 14:17:18 +01:00
ptitSeb
abee0fb560 Added x86_64 tests (based on box86) 2021-02-28 13:19:23 +01:00
ptitSeb
80a8bf0ce1
Initial commit 2020-12-01 10:42:53 +01:00