Re: [PATCH v7 09/12] x86/boot/64: Adapt assembly for PIE support

2019-06-10 Thread Kees Cook
On Mon, May 20, 2019 at 04:19:34PM -0700, Thomas Garnier wrote: > From: 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.

[PATCH v7 09/12] x86/boot/64: Adapt assembly for PIE support

2019-05-20 Thread Thomas Garnier
From: 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