tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64: kernel aslr support



On Fri, Oct 06, 2017 at 10:32:01AM +0200, Maxime Villard wrote:
> Le 06/10/2017 à 08:19, Martin Husemann a écrit :
> > On Thu, Oct 05, 2017 at 12:56:02PM +0200, Maxime Villard wrote:
> > > I don't think it is possible to compile some parts as relocatable and some
> > > others as static. What we could do is compile both the kernel and the prekern
> > > separately, and use objcopy to merge them.
> > 
> > I don't see why this would be a problem.
> 
> I didn't say objcopy is a problem, the problem is the bootloader.

I don't even think objcopy would be needed, but there is always the
devil in the details and I didn't try.

I don't get the issue with the bootloader - it just loads one binary
and doesn't care about ASLR, the "prekernel" entry point handles that
later (rearranging any mappings the bootloader might have previously
done afterwards)?

Martin


Home | Main Index | Thread Index | Old Index