Date: Fri, 05 Dec 1997 08:30:09 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: John Polstra <jdp@polstra.com> Cc: current@FreeBSD.ORG Subject: Re: Heads up: recent ld.so changes broke emacs Message-ID: <10740.881307009@critter.freebsd.dk> In-Reply-To: Your message of "Thu, 04 Dec 1997 19:58:33 PST." <199712050358.TAA17097@austin.polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199712050358.TAA17097@austin.polstra.com>, John Polstra writes: >> Emacs may think that it has a monopoly on calling sbrk() that would >> be bad :-( > >Luckily, that's not it. The problem, essentially, is that the emacs >executable is invalid. > >When emacs is built, first the Makefile builds a virgin version named >"temacs" using normal cc commands. Then it runs temacs in batch >mode, telling it to load all the common built-in lisp modules. After >loading them into memory, temacs then "unexec"s itself. What does >that mean? It copies its address space out to a file, and fakes up an >a.out header at the beginning of it so that the file can be executed >directly. That file becomes the emacs that is installed. What happens to malloc's mmap'ed page-table ? -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10740.881307009>