Commit graph

152 commits

Author SHA1 Message Date
Folkert
9777ae64a5
slowly cleaning up 2022-09-23 11:26:12 +02:00
Folkert
3229a10764
actually append the app bytes into the new section 2022-09-23 11:26:12 +02:00
Folkert
d5cd4776c0
using the mmap 2022-09-23 11:26:12 +02:00
Folkert
004a9895fa
empty second text section 2022-09-23 11:26:11 +02:00
Folkert
59b4699668
extra .text section created 2022-09-23 11:26:11 +02:00
Folkert
dbc5f9e3e7
get rid of a copy of the data 2022-09-23 00:25:20 +02:00
Folkert
c9c08a28ec
cleanup 2022-09-23 00:16:31 +02:00
Folkert
79337f1333
move more into the dynhost 2022-09-23 00:15:54 +02:00
Folkert
8f7497acb7
write import directory size in the dynhost, not the executable 2022-09-23 00:13:11 +02:00
Folkert
32dab538ea
refactor 2022-09-23 00:07:28 +02:00
Folkert
2631970851
use mmap 2022-09-23 00:06:57 +02:00
Folkert
56bf57dab1
improve calculation of section index 2022-09-23 00:04:57 +02:00
Folkert
1c8b717af4
Revert "move the erasing of the .dll information to the precompiled host"
This reverts commit ba8baae0dc.
2022-09-22 23:51:52 +02:00
Folkert
ba8baae0dc
move the erasing of the .dll information to the precompiled host 2022-09-22 23:45:17 +02:00
Folkert
5b9e152248
use cached dynamic_relocations 2022-09-22 21:58:54 +02:00
Folkert
1ebcf25fc0
cleanup 2022-09-22 21:56:40 +02:00
Folkert
9bbe0e029f
refactor 2022-09-22 21:55:31 +02:00
Folkert
1c95fd3761
a functional windows surgical linker 2022-09-22 21:28:27 +02:00
Folkert
466b5d78cb
linking of a very simple roc program 2022-09-22 00:32:36 +02:00
Folkert
05feeeb253
call host functions from the app 2022-09-21 17:42:08 +02:00
Folkert
fcc17f6b68
use the -rdynamic flag to have zig produce an export section for the host 2022-09-21 15:26:03 +02:00
Folkert
2d2fbfd987
add comment 2022-09-21 12:37:48 +02:00
Folkert
8f5b005f10
refactor section header writing 2022-09-21 12:32:43 +02:00
Folkert
20cd50f712
add windows test 2022-09-20 23:56:52 +02:00
Folkert
841a553839
cleanup 2022-09-20 23:56:19 +02:00
Folkert
a3fc426752
support multiple symbols (from the same section) 2022-09-20 23:51:03 +02:00
Folkert
42f725bb51
support multiple text and rdata sections 2022-09-20 21:00:31 +02:00
Folkert
ec0ac1cf55
use an exported constant in the host 2022-09-20 20:11:44 +02:00
Folkert
66a83a9705
copy in the app's .rdata section 2022-09-19 18:08:17 +02:00
Folkert
631a1b6302
fold experimental stuff into old test 2022-09-19 15:23:47 +02:00
Folkert
3cd2bf6ad4
more cleanup 2022-09-19 15:21:34 +02:00
Folkert
3ca3aae549
slowly cleaning up 2022-09-19 15:08:47 +02:00
Folkert
05aba03b87
actually append the app bytes into the new section 2022-09-19 12:50:02 +02:00
Folkert
322091353e
using the mmap 2022-09-19 12:03:02 +02:00
Folkert
4c8475fb74
empty second text section 2022-09-19 11:59:45 +02:00
Folkert
28fb72cca3
extra .text section created 2022-09-19 11:54:45 +02:00
Folkert
2b0ec6c227
help the type checker 2022-09-19 11:36:47 +02:00
Folkert
b881af47cb
first surgical link on PEs 2022-09-19 10:43:37 +02:00
Folkert
841c478b98
update the length of imports in the data directory after removing our dummy dll 2022-09-18 17:23:50 +02:00
Folkert
6005ed0664
add test that combines a zig platform with a dll 2022-09-18 14:11:46 +02:00
Folkert
61366f0d43
add test for preprocessing on a zig host 2022-09-18 13:42:21 +02:00
Folkert
270949aa07
Revert "add test for preprocessing on a zig host"
This reverts commit 5ee12aeb7d.
2022-09-18 00:58:34 +02:00
Folkert
5ee12aeb7d
add test for preprocessing on a zig host 2022-09-18 00:58:27 +02:00
Brian Carroll
b0c4f74109
Add some extra context clues to a name and a comment 2022-09-17 07:44:41 +01:00
Folkert
c00e458bad
refactor 2022-09-15 20:06:07 +02:00
Folkert
bad715e18a
add some objdump snippets to make clearer what is happening 2022-09-15 19:37:28 +02:00
Folkert
132ea07191
refactor out a constant 2022-09-15 19:37:12 +02:00
Folkert
1b74dec8ac
remove test 2022-09-14 21:19:39 +02:00
Folkert
cead509255
comment out test 2022-09-14 21:19:25 +02:00
Folkert
d8c0c176d8
comment 2022-09-14 18:31:27 +02:00