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

2018-10-13 Thread Bin Meng
Hi Heinrich, On Sat, Oct 13, 2018 at 12:57 PM Bin Meng wrote: > > Hi Heinrich, > > On Sat, Oct 13, 2018 at 9:07 AM Heinrich Schuchardt > wrote: > > > > On x86_64 the field global_data_ptr is assigned before relocation. As > > global data sections (.data and .bss) overlap with the relocation

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

2018-10-12 Thread Bin Meng
On Sat, Oct 13, 2018 at 12:57 PM Bin Meng wrote: > > Hi Heinrich, > > On Sat, Oct 13, 2018 at 9:07 AM Heinrich Schuchardt > wrote: > > > > On x86_64 the field global_data_ptr is assigned before relocation. As > > global data sections (.data and .bss) overlap with the relocation sections > >

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

2018-10-12 Thread Bin Meng
Hi Heinrich, On Sat, Oct 13, 2018 at 9:07 AM Heinrich Schuchardt wrote: > > On x86_64 the field global_data_ptr is assigned before relocation. As > global data sections (.data and .bss) overlap with the relocation sections Good catch! But I think the x86_64 global data is in the .bss, not

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

2018-10-12 Thread Heinrich Schuchardt
On x86_64 the field global_data_ptr is assigned before relocation. As global data sections (.data and .bss) overlap with the relocation sections (.rela) this destroys the relocation table and leads to spurious errors. By moving the field to the .text section it will not overlap any relocation