Commit Graph

27 Commits

Author SHA1 Message Date
d61fd4f9c7
Fix grim bug in PE/COFF image structures causing invalid data read from optional header 2024-03-02 00:56:38 +01:00
a57ae020fa
Implement PeGetFileSize(), PeGetImageSize() and PeUnloadImage() routines 2024-03-01 23:12:12 +01:00
17c50ea912
Redesign a way of storing module information; this allows to store more data in a single section, like license or a list of authors, as well as solves the problem with different module name lengths 2024-02-28 23:28:33 +01:00
a70df7cbf8
Properly print status codes 2024-02-16 23:01:29 +01:00
98acc6f3d4
Use uppercase when printing status codes 2024-02-16 22:09:38 +01:00
767ed21288
Correct module description 2024-01-25 22:26:02 +01:00
7a65b37f96
Implement new module providing a basic support for PE/COFF executables 2024-01-25 22:04:30 +01:00
4412d4fc98
Rewrite core of the XTLDR boot loader
Reviewed-on: xt-sys/exectos#7
Reviewed-by: Piotr Likoski <likoski@noreply.codingworkshop.git>
Co-authored-by: Rafal Kupiec <belliash@codingworkshop.eu.org>
Co-committed-by: Rafal Kupiec <belliash@codingworkshop.eu.org>
2024-01-09 18:51:04 +01:00
aace0f39c4
Allow stripped PE/COFF images to be loaded, just warn about it 2023-02-22 15:20:00 +01:00
2bf15a5bb8
Fix pointer offset in PE relocation code 2023-01-29 20:38:05 +01:00
c91708034b
Correct comments 2023-01-02 18:06:54 +01:00
6d77ff42c5
Loop over halt; add missing calling convention 2022-12-27 20:12:59 +01:00
8b02fb6c3f
Mostly update comments in PE/COFF module 2022-12-21 23:02:37 +01:00
eb5998c58e
Add a way to check PE/COFF image machine type 2022-12-20 15:37:13 +01:00
6b2f34f287
Store physical address as well in the image context 2022-12-04 22:46:33 +01:00
0db01053ab
Code formatting 2022-11-16 20:06:52 +01:00
5ec08cb84a
Implement PeGetSubSystem() routine 2022-11-16 15:03:33 +01:00
9f43ad06af
Implement PeRelocateImage() routine 2022-11-15 23:31:35 +01:00
ee9f2df6a6
Properly relocate PE/COFF image 2022-11-15 00:19:21 +01:00
fd4e9ffe63
Fix compiler warning for 32bit build, use proper data types 2022-11-14 17:58:53 +01:00
2dd7b09fbb
Make sure PE image is executable 2022-11-12 19:16:00 +01:00
b03c9c2a25
Further PE/COFF module improvements 2022-11-12 12:37:49 +01:00
3c6136811b
Use shorter and more readable variable names 2022-11-07 20:06:19 +01:00
66713ba461
Print more accurate message 2022-11-07 15:51:27 +01:00
2f16a8534c
Code cleanup 2022-11-06 20:03:49 +01:00
c8f99ad6ed
Initial PE/COFF support for loading image files 2022-11-06 19:59:38 +01:00
5869aa985a
Quick code refactor for further modules development 2022-10-20 18:19:34 +02:00