Re: [U-Boot] [PATCH v3 27/62] x86: Do relocation before clearing BSS

2017-01-16 Thread Bin Meng
On Mon, Jan 16, 2017 at 10:03 PM, Simon Glass wrote: > 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

[U-Boot] [PATCH v3 27/62] x86: Do relocation before clearing BSS

2017-01-16 Thread Simon Glass
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 reloc