bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#41242: Port feature/native-comp to Windows


From: Nicolas Bértolo
Subject: bug#41242: Port feature/native-comp to Windows
Date: Sat, 23 May 2020 11:41:19 -0300

> This is something we have to define.  Currently we only complain if one
> of the defined functions that was dumped cannot be found in the new
> .eln.  My preference would be to sign each .eln used for dump to make
> sure what we are loading is what we dumped and refuse to load otherwise.

What if we find out where the linker has put the shared library, copy that region
of memory into the dump file and when loading Emacs we mmap that data into
same address it was?
It is essentially saving the result of the linker for later use. This would require
no ASLR and doing it ASAP to prevent the something from using that address space.

Another option: statically link the .eln files (we'd need libgccjit to create static libraries)
into the final Emacs executable. This would take care of function definitions and
loading the dump would take care of the rest.

Nicolas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]