Commit de525ac1 authored by Vivian Wang's avatar Vivian Wang Committed by Anup Patel
Browse files

firmware: Remove ALIGN in .rela.dyn in linker script

The .rela.dyn section should be exactly the size of the relocations,
without padding. On RV64, .rela* sections are already aligned and
there's no need for padding. On RV32, this adds padding up to 4 bytes,
which, if present, confuses the relocation loop into processing an extra
entry past the end of .rela*, and it crashes with an invalid memory
access.

Fixes: 0f20e8ad

 ("firmware: Support position independent execution")
Signed-off-by: default avatarVivian Wang <dramforever@live.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 3669153e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment