Browse Source

Fix _start_trap alignment

Vadim Kaushan 6 years ago
parent
commit
b4486cbb8c

+ 0 - 1
riscv-rt/asm.S

@@ -36,7 +36,6 @@ _start:
     restores caller saved registers and then returns.
 */
 .section .trap, "ax"
-.align 4
 .global _start_trap
 
 _start_trap:

BIN
riscv-rt/bin/riscv32imac-unknown-none-elf.a


BIN
riscv-rt/bin/riscv32imc-unknown-none-elf.a


+ 1 - 0
riscv-rt/link.x

@@ -15,6 +15,7 @@ SECTIONS
     /* point of the program. */
     KEEP(*(.init));
     KEEP(*(.init.rust));
+    . = ALIGN(4);
     KEEP(*(.trap));
     KEEP(*(.trap.rust));