diff options
author | Andreas Schwab <schwab@suse.de> | 2020-01-09 12:49:38 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-01-10 09:30:27 +0530 |
commit | 6ffe1bed09be1cb2db8755b30c0258849184400b (patch) | |
tree | b8ae22adece62c49f4cce1fde68901a5ed060135 /firmware/payloads | |
parent | f95dd39ab6ed9711aabc56968582aa44130a9f89 (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/payloads')
-rw-r--r-- | firmware/payloads/test_head.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/payloads/test_head.S b/firmware/payloads/test_head.S index ef1405a..840013e 100644 --- a/firmware/payloads/test_head.S +++ b/firmware/payloads/test_head.S @@ -23,8 +23,8 @@ #define REG_L __REG_SEL(ld, lw) #define REG_S __REG_SEL(sd, sw) - .align 3 .section .entry, "ax", %progbits + .align 3 .globl _start _start: /* Pick one hart to run the main boot sequence */ @@ -71,15 +71,15 @@ _start_warm: /* We don't expect to reach here hence just hang */ j _start_hang - .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 _hart_lottery: RISCV_PTR 0 _boot_a0: |