From b4ffaa7cdcce4fedb857f6b8342301f8dde65c78 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Nov 2022 13:47:45 +0100 Subject: bsps/riscv: Use start data for object Maybe this helps to ensure that the object is properly aligned. Update #4658. --- bsps/riscv/shared/start/start.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bsps/riscv/shared/start/start.S b/bsps/riscv/shared/start/start.S index 0b9c96c5a2..34e1839ca1 100644 --- a/bsps/riscv/shared/start/start.S +++ b/bsps/riscv/shared/start/start.S @@ -131,9 +131,15 @@ SYM(_start): mv a0, s1 call bsp_start_on_secondary_processor + .section .bsp_start_data, "aw" + + .type .Lsecondary_processor_go, @object + #if __riscv_xlen == 32 + .size .Lsecondary_processor_go, 4 .align 2 #elif __riscv_xlen == 64 + .size .Lsecondary_processor_go, 8 .align 3 #endif -- cgit v1.2.3