GNU bug report logs -
#23529
Request for fixing randomize_va_space build issues
Previous Next
Reported by: Philippe Vaucher <philippe.vaucher <at> gmail.com>
Date: Fri, 13 May 2016 12:20:02 UTC
Severity: important
Tags: fixed
Merged with 13964
Found in version 24.3
Fixed in version 27.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii wrote:
>> PIE can relocate data as well as code.
> Since we will be reading data into existing variables, that would
> happen automatically.
I'm afraid I'm not following. Any existing variables (i.e., existing in Emacs
when it starts up) are of fixed size, so they can't hold all the data of a
dumped Emacs. The newly starting-up Emacs must decide how much storage to
allocate to hold the dumped state that Emacs is about to read. This storage's
addresses should be randomized, and the data that Emacs reads will contain
pointers-to-data that Emacs itself would need to relocate.
All this is doable, of course. It's just that it should be easier and more
portable to use the existing compilers and linkers rather than reinvent the wheel.
>> > And with modules, we also have code to dump.
> ??? What do you mean by that? Modules cannot be preloaded, AFAIK.
You're right, saving objects as C source code doesn't fix that problem all by
itself.
This bug report was last modified 5 years and 312 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.