Re: [PATCH v6 13/27] x86/boot/64: Build head64.c as mcmodel large when PIE is enabled

2019-02-01 Thread Thomas Garnier
On Fri, Feb 1, 2019 at 3:15 AM Kirill A. Shutemov wrote: > > On Thu, Jan 31, 2019 at 11:24:20AM -0800, Thomas Garnier wrote: > > The __startup_64 function assumes all symbols have relocated addresses > > instead of the current boot virtual address. PIE generated code favor > > relative addresses

Re: [PATCH v6 13/27] x86/boot/64: Build head64.c as mcmodel large when PIE is enabled

2019-02-01 Thread Kirill A. Shutemov
On Thu, Jan 31, 2019 at 11:24:20AM -0800, Thomas Garnier wrote: > The __startup_64 function assumes all symbols have relocated addresses > instead of the current boot virtual address. PIE generated code favor > relative addresses making all virtual and physical address math incorrect. > If PIE is

[PATCH v6 13/27] x86/boot/64: Build head64.c as mcmodel large when PIE is enabled

2019-01-31 Thread Thomas Garnier
The __startup_64 function assumes all symbols have relocated addresses instead of the current boot virtual address. PIE generated code favor relative addresses making all virtual and physical address math incorrect. If PIE is enabled, build head64.c as mcmodel large instead to ensure absolute