Re: [U-Boot] [PATCH v2 1/1] x86: put global data pointer into the .data section

2018-10-13 Thread Bin Meng
On Sat, Oct 13, 2018 at 3:40 PM Heinrich Schuchardt wrote: > > On x86_64 the field global_data_ptr is assigned before relocation. As > sections for uninitialized global data (.bss) overlap with the relocation > sections (.rela) this destroys the relocation table and leads to spurious > errors. > >

[U-Boot] [PATCH v2 1/1] x86: put global data pointer into the .data section

2018-10-13 Thread Heinrich Schuchardt
On x86_64 the field global_data_ptr is assigned before relocation. As sections for uninitialized global data (.bss) overlap with the relocation sections (.rela) this destroys the relocation table and leads to spurious errors. Initialization forces the global_data_ptr into a section for initialized