summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJessica Clarke <[email protected]>2023-01-26 21:10:03 +0530
committerAnup Patel <[email protected]>2023-01-27 08:39:49 +0530
commitc8ea836ee33eb778f48f780412e147386dac5301 (patch)
treeb489571d9473a46de62fff6dc422821313f1a4f5 /include
parentc45992cc2b121e05c74b438462b8066de3e7d999 (diff)
firmware: Fix fw_rw_offset computation in fw_base.S
It seems BFD just does totally nonsensical things for SHN_ABS symbols when producing position-independent outputs (both -pie and -shared) for various historical reasons, and so SHN_ABS symbols are still subject to relocation as far as BFD is concerned (except AArch64, which fixes it in limited cases that don’t apply here...). The above affects the _fw_rw_offset provided through fw_base.ldS linker script which results in OpenSBI firmware failing to boot when loaded at an address different from FW_TEXT_START. Fixes: c10e3fe5f9a1 ("firmware: Add RW section offset in scratch") Signed-off-by: Jessica Clarke <[email protected]> Reported-by: Lad Prabhakar <[email protected]> Tested-by: Lad Prabhakar <[email protected]> Tested-by: Anup Patel <[email protected]> Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions