summaryrefslogtreecommitdiff
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2017-01-16 07:03:52 -0700
committerBin Meng <[email protected]>2017-02-06 11:38:46 +0800
commit6bda55a38ce4d9c5fcab5a5011e06469662954b3 (patch)
tree21ff947c3d1eeb0e71d6bf4ffaebeeb5d581cabc /scripts/cleanpatch
parentfb92308b983d54f6275ae0ced0e6930dfcc5bdec (diff)
x86: Do relocation before clearing BSS
The BSS region may overlap with relocations. If we clear BSS we will overwrite the start of the relocation area. This doesn't matter when running from SPI flash, since it is read-only. But when relocating 64-bit U-Boot from one place in RAM to another, relocation will fail because some of its relocations have been zeroed. To fix this, put the ELF fixup call before the BSS clearing call. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions