File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
compiler/rustc_target/src/spec/targets
library/std/src/sys/pal/vexos Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ MEMORY {
11
11
}
12
12
13
13
__stack_length = 0x400000;
14
- __heap_end = __user_ram_end - __stack_length - 64;
14
+ /*
15
+ It's currently unclear why subtracting anything is necessary, but it fixes memory permission errors.
16
+ 0x100 is an arbitrary number that works.
17
+ */
18
+ __heap_end = __user_ram_end - __stack_length - 0x1000;
15
19
16
20
SECTIONS {
17
21
.code_signature __user_ram_start : {
@@ -25,10 +29,12 @@ SECTIONS {
25
29
26
30
.rodata : {
27
31
*(.rodata .rodata.*)
32
+ *(.rodata1 .rodata1.*)
28
33
} > USER_RAM
29
34
30
35
.data : {
31
36
*(.data .data.*)
37
+ *(.data1 .data1.*)
32
38
} > USER_RAM
33
39
34
40
.bss : {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ unsafe impl dlmalloc::Allocator for Vexos {
40
40
}
41
41
42
42
fn free ( & self , _ptr : * mut u8 , _size : usize ) -> bool {
43
- return false ;
43
+ false
44
44
}
45
45
46
46
fn can_release_part ( & self , _flags : u32 ) -> bool {
You can’t perform that action at this time.
0 commit comments