Commit graph

170 commits

Author SHA1 Message Date
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
Folkert
2e8952d8a7
windows PE preprocessing of the .exe 2022-09-14 18:02:01 +02:00
Folkert
af8f54bfbd
find and decode the dynamic relocations in .exe files 2022-09-07 17:52:19 +02:00
Folkert
6fff224c77
PE cleanup after review elsewhere 2022-09-07 14:07:52 +02:00
Folkert
8a2aa076ee
cleanup 2022-09-07 14:07:52 +02:00
Folkert
c46f8a0073
create a dummy elf .so from scratch 2022-09-07 14:07:52 +02:00
Folkert de Vries
bdbaa9dda2
Merge pull request #3956 from roc-lang/refactor-surgery
minor cleanup of surgery
2022-09-06 19:17:02 +02:00
Folkert de Vries
33ae4c2655
Merge branch 'main' into windows-surgical-dll
Signed-off-by: Folkert de Vries <folkert@folkertdev.nl>
2022-09-05 11:31:19 +02:00
Folkert
af74f72f8a
minor tweaks 2022-09-03 14:45:22 +02:00
Folkert
ff7df65f36
simplify slices 2022-09-03 13:24:21 +02:00
Folkert de Vries
7e31f67910
Merge pull request #3919 from roc-lang/surgical-no-break-caching
surgical linker: don't generate dynhost if it's unchanged
2022-08-31 09:04:13 +02:00
Folkert
ab2163b800
sort symbols 2022-08-30 15:00:58 +02:00
Folkert
3e78395237
changes after review 2022-08-30 12:32:19 +02:00
Brendan Hansknecht
ed7f066d33
Merge pull request #3916 from roc-lang/surgical-text-surgeries
surgical linker: extract finding surgeries in text
2022-08-30 03:00:26 +00:00
Folkert
d9db0b7096
fix shared object file extension 2022-08-30 00:15:48 +02:00
Folkert
835d3b9eb0
move stuff into files 2022-08-30 00:10:44 +02:00
Folkert
62a818883a
generate a minimal, fake .dll with the host-exposed symbols 2022-08-29 23:58:05 +02:00
Brendan Hansknecht
3895abd540
Merge pull request #3915 from roc-lang/surgical-use-struct-syntax
surgical linker: use struct initialization syntax
2022-08-29 03:00:34 +00:00
Folkert
d433448d6f
don't regenerate the dynhost file if it is unchanged 2022-08-28 13:17:50 +02:00
Richard Feldman
3ca9202e3b
Merge pull request #3834 from roc-lang/rust-1.63-clippy
rust 1.63 clippy
2022-08-27 21:15:36 -04:00
Folkert
0ca79c7a60
add some comments 2022-08-28 00:12:48 +02:00
Folkert
764b9f656e
simplify pattern 2022-08-28 00:08:07 +02:00
Folkert
2bc809503a
extract looking at the text sections 2022-08-28 00:07:29 +02:00
Folkert
e009f7888e
prettify 2022-08-27 23:30:00 +02:00
Folkert
476521e7b7
use struct initialization syntax 2022-08-27 23:23:08 +02:00
Folkert
57c12b009b
find the undefined symbols 2022-08-27 12:21:49 +02:00
Folkert
0238471241
add a test for extracting symbols from a dynhost 2022-08-27 12:19:06 +02:00
Folkert
c4d25e0180
extract symbol collecting logic 2022-08-27 12:17:29 +02:00
Folkert de Vries
a8b83cfe37
Merge pull request #3858 from roc-lang/surgical-generate-dylib
Surgical generate dylib
2022-08-25 09:03:52 +02:00
Folkert
87988a301b
cleanup 2022-08-24 12:34:08 +02:00
Folkert
0a2ffc8ba4
rename 2022-08-23 21:20:44 +02:00
Folkert
e609919f39
cleanup 2022-08-23 21:20:23 +02:00
Folkert
daee025ff6
more hardcoding 2022-08-23 21:15:32 +02:00
Folkert
df77b8bac1
simplify reserving of alloc sections 2022-08-23 16:09:25 +02:00
Folkert
3431182ac9
simplify dynamic section hack 2022-08-23 15:37:12 +02:00
Folkert
9cef677674
refactor 2022-08-23 15:35:44 +02:00
Folkert
d3db9a0fef
more hardcoding 2022-08-23 15:32:47 +02:00
Folkert
0fb137cc93
hardcode the dynamic section content 2022-08-23 15:14:42 +02:00
Folkert
164265f315
strip hash some more 2022-08-23 14:48:13 +02:00
Folkert
9b2a43639b
unroll a loop 2022-08-23 14:34:26 +02:00
Folkert
d7499ce928
hardcode some hash table properties 2022-08-23 14:17:30 +02:00
Folkert
fd5e9a9b48
stop sorting symbols before hashing 2022-08-23 14:12:06 +02:00
Folkert
597b4752dc
rename MySection -> Section 2022-08-23 14:05:57 +02:00
Folkert
f4a388ce90
cleanup 2022-08-23 14:02:19 +02:00
Folkert
fcead21c17
remove .ehframe section from the dylib 2022-08-23 14:00:54 +02:00
Folkert
a7ab08b2ba
cleanup 2022-08-21 21:10:40 +02:00
Folkert
88c8ee6c93
use our section iterator instead of in_sections 2022-08-21 21:06:30 +02:00