Re: [PATCH v9 08/11] x86/boot/64: Adapt assembly for PIE support

2019-08-09 Thread Borislav Petkov
chOn Tue, Jul 30, 2019 at 12:12:52PM -0700, Thomas Garnier wrote: > Change the assembly code to use only relative references of symbols for the > kernel to be PIE compatible. > > Early at boot, the kernel is mapped at a temporary address while preparing > the page table. To know the changes

[PATCH v9 08/11] x86/boot/64: Adapt assembly for PIE support

2019-07-30 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Early at boot, the kernel is mapped at a temporary address while preparing the page table. To know the changes needed for the page table with KASLR, the boot code calculate the difference