Commit Graph

347 Commits

Author SHA1 Message Date
Ayaz Hafiz
44c4797d9a
Parameterize program solving on a FunctionKind
This new flag determines whether we should introduce a new kind to
represent lambda sets, or whether lambdas should be erased. The latter
is not yet implemented.
2023-07-12 13:53:50 -05:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Anton-4
4e9bffca0b
fmt 2023-06-30 18:27:47 +02:00
Anton-4
7e86539e3d
c_char fix
The i8 is a u8 on raspberry pi 4 aarch64 linux, c_char takes care of this automatically.
2023-06-30 18:05:39 +02:00
Brendan Hansknecht
4f97ab2965
remove old compiler-rt workarounds for macos 2023-06-24 17:27:11 -07:00
Brendan Hansknecht
75c290273d
allow surgical linker to work without any rodata section 2023-06-16 10:30:44 -05:00
Brendan Hansknecht
6c50fc8211
fix test 2023-06-03 21:53:59 -07:00
Brendan Hansknecht
829b71aa1f
fully take ownership of memcpy in the builtins 2023-06-03 19:05:19 -07:00
Brendan Hansknecht
08d4ac558b
ignore memcpy_decision in pe linker 2023-06-02 17:02:59 -07:00
Brendan Hansknecht
1a800ef228
run cargo clippy --fix 2023-06-02 15:23:07 -07:00
Brendan Hansknecht
86417a8457
correctly handle bss section in surgical linker 2023-06-02 15:23:06 -07:00
Brendan Hansknecht
e7906b30a9
add other compiler-rt functions in builtins.o 2023-05-30 14:38:10 -07:00
Brendan Hansknecht
a41611b553
allow ingested compiler-rt function in windows surgical linker 2023-05-30 12:11:15 -07:00
Brendan Hansknecht
81e8812f38
Add all fns in compiler-rt that builtins are known to depend on
Also removes the workaround in the surigical linker.
This should mean we should get clear errors if we missed a function instead of crashes/segfaults.
2023-05-30 09:21:59 -07:00
Ayaz
ba1f8ffe5f
Merge pull request #5272 from extemporalgenome/markdown-typos-20230410
markdown typo fixes
2023-05-03 10:24:52 -05:00
Brendan Hansknecht
506c1251f4
Split metadata by format
This does not change the metadata to keep old packages working.
Instead, for now, just appended `_` to unused fields.
2023-04-27 08:04:14 -07:00
Brendan Hansknecht
ae04a73d2f
add todo about storage endian 2023-04-27 07:58:07 -07:00
Brendan Hansknecht
dbbc621892
switch from assignment to using the set method for numbers 2023-04-27 07:58:06 -07:00
Brendan Hansknecht
e88d759331
Correct use of NativeEndian to LittleEndian
This should specify the endian read from and written to.
In our case, we are using elf/macho. So, the endian is always little.
2023-04-27 07:58:03 -07:00
Folkert
394495d307 Revert "update size asserts"
This reverts commit 9973d4b8d2.
2023-04-21 13:22:23 +02:00
Folkert
4cd8f0a056 clippy --fix fixes 2023-04-21 12:05:51 +02:00
Kevin Gillette
0321f91c70
Kevin Gillette: markdown typo fixes
Luke Boswell: move Str.md as it looks more like a design doc than rust crate

Co-authored-by: Luke Boswell <lukewilliamboswell@gmail.com>
2023-04-10 14:07:03 -06:00
Anton-4
cae7d5eaba
ignore in different order
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-03-24 18:00:14 +01:00
Anton-4
c48c8f6d2c
added zig build lock 2023-03-24 17:24:10 +01:00
Anton-4
8da9af94f2
use latest basic-cli, better error messages 2023-03-20 20:06:36 +01:00
Anton-4
f619a35c7c
.rh and .rm adjustments, basic-cli nightly prep 2023-03-20 12:24:30 +01:00
Folkert
fe15a2e79c
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-03-08 19:46:00 +01:00
Folkert
938f7172dd
restore creation of the libapp.o file 2023-03-08 19:43:34 +01:00
Brendan Hansknecht
f42f61e271
run a toml formatter and then clean it up a bit 2023-03-06 19:47:57 -08:00
Brendan Hansknecht
4a89bee0a5
centralize package versions except for vendor and excluded 2023-03-06 19:29:09 -08:00
Brendan Hansknecht
5485c8a5b0
update to using workspace package spec 2023-03-06 16:36:18 -08:00
Folkert
853c0387dc
cleanup 2023-03-05 17:33:48 +01:00
Folkert
d224992bc1
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-03-05 17:24:05 +01:00
Folkert
769a4c415b
update remaining cli tests 2023-03-05 16:57:51 +01:00
Brendan Hansknecht
7a944113a0
move build_file and related functions to roc_build
This is needed of glue to be able to call build_file.
Also does some other changes to avoid circular dependencies.
2023-03-04 10:00:43 -08:00
Folkert
180187e5af
get old examples to work 2023-03-01 21:56:14 +01:00
Folkert
fa05c49693
correct the name of the size() exposed function 2023-02-26 14:23:10 +01:00
Folkert
454f3c603e
give the new exposed symbols to the surgical linker 2023-02-25 19:35:46 +01:00
Anton-4
6d115af11a
update tutorial basic-cli release 2023-01-23 20:11:32 +01:00
Anton-4
cc67c75d39
update to rm2 2023-01-21 19:02:40 +01:00
Brendan Hansknecht
7d6426b280
surgical linker: remove none relocations
Simply setting relocations to None does not always work.
If the linker runs a none relocation, it may cause the application to crash.
To fix this, we fully remove all of the none relocations.
2023-01-18 23:19:23 +01:00
Brendan Hansknecht
7c08520e0e
surgical linker: remove jump slot relocations and update static symbols 2023-01-18 23:19:22 +01:00
Folkert
479caaf0a9
clean up path usage 2022-12-29 16:50:21 +01:00
Folkert
e44bf59334
remove argument from load_and_monomorphize 2022-12-29 16:50:19 +01:00
Richard Feldman
5958f50728
Drop obsolete mentions of roc_send_signal 2022-12-08 06:36:12 -05:00
Folkert
ac1fce1a17
put in more section headers and make sure the .dynamic section is in the right segments 2022-12-02 15:19:15 +01:00
Folkert
2d8ba79034
turns out the symtab/strtab are important 2022-12-02 15:19:15 +01:00
Brendan Hansknecht
4329b08fae
fix stub lib path
platform-path is relative to the execution folder, not the input path
2022-11-29 10:03:27 -08:00
Folkert
a9bd01be87
simplify to only the required changes 2022-11-29 09:03:42 +01:00
Folkert
5a62eaa662
commit test version with elfcopy object example 2022-11-29 09:03:42 +01:00