summaryrefslogtreecommitdiff
path: root/scripts/gcc-stack-usage.sh
diff options
context:
space:
mode:
authorAlexander Graf <[email protected]>2018-12-11 10:00:42 +0100
committerAlexander Graf <[email protected]>2018-12-23 04:02:20 +0100
commit5c38e05ed8ce468585b3f4aceb4ebf37b904d3f1 (patch)
treeddb4dc05ca6e52b2f57f2b30fe442e79514260f3 /scripts/gcc-stack-usage.sh
parent5bdb0a7cad05df35cd87ebce683eda032a8abc87 (diff)
efi_loader: Make RTS relocation more robust
While changing the RTS alignment to 64KB in commit 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") the relocation code started to break. The reason for that is that we didn't actually look at the real relocation data. We merely took the RUNTIME_CODE section as a hint and started to relocate based on self calculated data from that point on. That calculation was now out of sync though. To ensure we're not running into such a situation again, this patch makes the runtime relocation code a bit more robust. We can just trust the phys/virt hints from the payload. We also should check that we really only have a single section, as the code doesn't handle multiple code relocations yet. Fixes: 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") Reported-by: Heinrich Schuchardt <[email protected]> Reported-by: Loic Devulder <[email protected]> Signed-off-by: Alexander Graf <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]> Tested-by: Loic Devulder <[email protected]> Tested-by: Jonathan Gray <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
Diffstat (limited to 'scripts/gcc-stack-usage.sh')
0 files changed, 0 insertions, 0 deletions