aboutsummaryrefslogtreecommitdiff
path: root/firmware/fw_base.S
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-01-09 12:49:38 +0100
committerAnup Patel <anup@brainfault.org>2020-01-10 09:30:27 +0530
commit6ffe1bed09be1cb2db8755b30c0258849184400b (patch)
treeb8ae22adece62c49f4cce1fde68901a5ed060135 /firmware/fw_base.S
parentf95dd39ab6ed9711aabc56968582aa44130a9f89 (diff)
firmware: Fix placement of .align directives
Move the .align directives after switching the section. We want to align the start of the current section, not the end of the previous section. This also obsoletes the misguided workaround of disabling relaxation. Signed-off-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'firmware/fw_base.S')
-rw-r--r--firmware/fw_base.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index 0797cc0..119622c 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -41,8 +41,8 @@
999:
.endm
- .align 3
.section .entry, "ax", %progbits
+ .align 3
.globl _start
.globl _start_warm
_start:
@@ -405,8 +405,8 @@ _link_start:
_link_end:
RISCV_PTR _fw_reloc_end
- .align 3
.section .entry, "ax", %progbits
+ .align 3
.globl _hartid_to_scratch
_hartid_to_scratch:
add sp, sp, -(3 * __SIZEOF_POINTER__)
@@ -440,15 +440,15 @@ _hartid_to_scratch:
add sp, sp, (3 * __SIZEOF_POINTER__)
ret
- .align 3
.section .entry, "ax", %progbits
+ .align 3
.globl _start_hang
_start_hang:
wfi
j _start_hang
- .align 3
.section .entry, "ax", %progbits
+ .align 3
.globl _trap_handler
_trap_handler:
/* Swap TP and MSCRATCH */
@@ -603,8 +603,8 @@ _skip_mstatush_restore:
mret
- .align 3
.section .entry, "ax", %progbits
+ .align 3
.globl _reset_regs
_reset_regs: