Commit graph

309 commits

Author SHA1 Message Date
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
daa7e72a2f
clarify comment 2022-09-18 01:00:36 +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
Folkert
4f51f18a08
remove a constant, add an assert 2022-09-18 00:32:55 +02:00
Folkert
c7bb2672a9
fix typo 2022-09-17 14:44:37 +02:00
Folkert
92514a1499
custom logic around finding 'forward' exports 2022-09-17 14:42:36 +02:00
Folkert
0da6484618
add some asserts about addresses in the dummy dll generation 2022-09-17 14:37:10 +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
Folkert
2e8952d8a7
windows PE preprocessing of the .exe 2022-09-14 18:02:01 +02:00
Folkert de Vries
3ee3f23836
Merge pull request #3971 from roc-lang/dependabot/cargo/bumpalo-3.11.0
Bump bumpalo from 3.10.0 to 3.11.0
2022-09-13 21:00:00 +02:00
Folkert de Vries
bed73f5b2e
Merge pull request #3986 from roc-lang/pe-dynamic-relocations
find and decode the dynamic relocations in .exe files
2022-09-13 10:28:54 +02:00
dependabot[bot]
0079048944
Bump bumpalo from 3.10.0 to 3.11.0
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.10.0...3.11.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 21:08:56 +00:00
Ayaz
08c5903a48
Merge pull request #4017 from roc-lang/dependabot/cargo/serde-1.0.144
Bump serde from 1.0.139 to 1.0.144
2022-09-12 12:44:14 -04:00
dependabot[bot]
35b2e9c80f
Bump clap from 3.2.18 to 3.2.20
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.18 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.18...v3.2.20)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 10:33:19 +00:00
dependabot[bot]
555ed2c7fc
Bump serde from 1.0.139 to 1.0.144
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.139 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.139...v1.0.144)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 05:28:20 +00: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
dependabot[bot]
048766cb3a
Bump memmap2 from 0.5.5 to 0.5.7
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs) from 0.5.5 to 0.5.7.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases)
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.5...v0.5.7)

---
updated-dependencies:
- dependency-name: memmap2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 12:34:16 +00:00
Folkert de Vries
5c7acf8f72
Merge pull request #3933 from roc-lang/dependabot/cargo/clap-3.2.18
Bump clap from 3.2.11 to 3.2.18
2022-08-30 14:32:41 +02:00