Skip to content

Commit 651a267

Browse files
Tropix126max-niederman
authored andcommitted
fix .code_signature section error
1 parent b1cbee0 commit 651a267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/spec/targets/armv7a_vex_v5_linker_script.ld

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ __stack_length = 0x400000;
1515
It's currently unclear why subtracting anything is necessary, but it fixes memory permission errors.
1616
0x100 is an arbitrary number that works.
1717
*/
18-
__heap_end = __user_ram_end - __stack_length - 0x1000;
18+
__heap_end = __user_ram_end - __stack_length - 0x100;
1919

2020
SECTIONS {
2121
.code_signature __user_ram_start : {
22+
__code_signature_start = .;
2223
KEEP(*(.code_signature))
24+
. = __code_signature_start + 0x20;
2325
} > USER_RAM = 0
2426

2527
.text __user_ram_start + 0x20 : {

0 commit comments

Comments
 (0)