Commit graph

2516 commits

Author SHA1 Message Date
Folkert
f88dc0308b
restructure the preprocessing entry point 2022-09-24 14:40:24 +02:00
Folkert de Vries
87f005a477
Merge pull request #4107 from roc-lang/windows-surgical-linker-first-roc-file
Windows surgical linker first roc file
2022-09-24 14:28:03 +02:00
Folkert
71a26d32d2
remove unused argument 2022-09-24 14:16:58 +02:00
Folkert
1251769eb5
add comment to metadata 2022-09-24 13:55:51 +02:00
Folkert
0b4682a73f
remove a magic offset 2022-09-24 13:48:58 +02:00
Folkert
228e5d831d
remove dead_code pragmas 2022-09-24 13:32:07 +02:00
Folkert de Vries
10b8cd299d
Merge pull request #4099 from roc-lang/pe-host-to-app
windows surgical linker: call host functions from the app
2022-09-24 12:54:53 +02:00
Folkert
baed73d9f2
renaming 2022-09-23 20:57:57 +02:00
Folkert
f7a2eff34b
refactor 2022-09-23 20:48:41 +02:00
Folkert
3131bd1a2f
Merge remote-tracking branch 'origin/pe-host-to-app' into windows-surgical-linker-first-roc-file 2022-09-23 20:17:42 +02:00
Folkert
f632e299cd
cross-compile C for windows with zig 2022-09-23 19:46:27 +02:00
Anton-4
d83f23928e
quotes to make error stand out 2022-09-23 18:35:54 +02:00
Folkert
aae2dbf17c
remove test we don't need any more 2022-09-23 18:29:27 +02:00
Folkert
6c4e225a4c
use unique temp dir 2022-09-23 17:13:15 +02:00
rezzaghi
8278d37f1d
fix format 2022-09-23 11:56:31 -03:00
rezzaghi
ce70fce3b2
Add path to error message when trying to read directory 2022-09-23 11:01:00 -03:00
Folkert
d871e2a14f
add the -rdynamic flag 2022-09-23 14:52:52 +02:00
Folkert
8811123811
add .exe extension when target is windows 2022-09-23 14:52:52 +02:00
Folkert
8634f284b5
call host functions from the app 2022-09-23 14:52:51 +02:00
Folkert
78e1328064
remove magic constant 2022-09-23 14:52:51 +02:00
Folkert
eca17a493f
Revert "some work on a .dll import section; immediately revert"
This reverts commit f151044afc.
2022-09-23 14:52:51 +02:00
Folkert
e5a2726daf
some work on a .dll import section; immediately revert 2022-09-23 14:52:50 +02:00
Folkert
438bc0e602
use the -rdynamic flag to have zig produce an export section for the host 2022-09-23 14:52:50 +02:00
Folkert de Vries
53c21d09b7
Merge pull request #4066 from roc-lang/windows-preprocess-link
Windows preprocess link
2022-09-23 14:19:38 +02:00
Anton-4
ef9c77409f
Merge remote-tracking branch 'upstream/main' into swiftuidemo 2022-09-23 12:04:34 +02:00
Folkert
fd5e0c9dda
missed some renames 2022-09-23 11:26:17 +02:00
Folkert
fae1d96474
more renames 2022-09-23 11:26:16 +02:00
Folkert
84b5a3479b
refactor (this is useful later for actual surgical linking 2022-09-23 11:26:16 +02:00
Folkert
b9b5dd32b2
rename some things 2022-09-23 11:26:16 +02:00
Folkert
3c5355aa2d
add comment 2022-09-23 11:26:16 +02:00
Folkert
87cdc6a9c7
refactor section header writing 2022-09-23 11:26:15 +02:00
Folkert
45d47e9ad5
add windows test 2022-09-23 11:26:15 +02:00
Folkert
0eafaaf977
cleanup 2022-09-23 11:26:15 +02:00
Folkert
63303844dd
support multiple symbols (from the same section) 2022-09-23 11:26:14 +02:00
Folkert
2a5d22739d
support multiple text and rdata sections 2022-09-23 11:26:14 +02:00
Folkert
cc0ee8c2fd
use an exported constant in the host 2022-09-23 11:26:14 +02:00
Folkert
8a6a126c19
copy in the app's .rdata section 2022-09-23 11:26:13 +02:00
Folkert
e2f799b6e0
fold experimental stuff into old test 2022-09-23 11:26:13 +02:00
Folkert
0f7c8c37bf
more cleanup 2022-09-23 11:26:13 +02:00
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
Ayaz
06610b7a0d
Merge pull request #4092 from roc-lang/fix-builtin-importing
Import Encode/Decode modules, and their types, in all scopes
2022-09-23 04:25:06 -05:00
dependabot[bot]
b1e87981c0
Bump libc from 0.2.132 to 0.2.133
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.132 to 0.2.133.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.132...0.2.133)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-23 08:39:25 +00: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