From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Removal of unexec support from glibc malloc Date: Wed, 20 Jan 2016 11:35:38 +0200 Message-ID: <83wpr4a905.fsf@gnu.org> References: <569CDB81.6040600@redhat.com> <569D6B1E.6020002@emvision.com> <569D8E0B.1010603@yandex.ru> <569D9539.5040007@emvision.com> <834me9d090.fsf@gnu.org> <569F3A84.5070101@porkrind.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1453282546 2084 80.91.229.3 (20 Jan 2016 09:35:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2016 09:35:46 +0000 (UTC) Cc: emacs-devel@gnu.org, ali_gnu2@emvision.com, rms@gnu.org, dgutov@yandex.ru To: David Caldwell Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 20 10:35:45 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aLpB2-0005oy-LK for ged-emacs-devel@m.gmane.org; Wed, 20 Jan 2016 10:35:44 +0100 Original-Received: from localhost ([::1]:41279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLpB1-0000cP-Sy for ged-emacs-devel@m.gmane.org; Wed, 20 Jan 2016 04:35:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLpAy-0000c5-CF for emacs-devel@gnu.org; Wed, 20 Jan 2016 04:35:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLpAx-0007cA-73 for emacs-devel@gnu.org; Wed, 20 Jan 2016 04:35:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLpAx-0007c6-4F; Wed, 20 Jan 2016 04:35:39 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2712 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aLpAl-00015z-C4; Wed, 20 Jan 2016 04:35:28 -0500 In-reply-to: <569F3A84.5070101@porkrind.org> (message from David Caldwell on Tue, 19 Jan 2016 23:43:00 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198422 Archived-At: > Cc: dgutov@yandex.ru, ali_gnu2@emvision.com, emacs-devel@gnu.org > From: David Caldwell > Date: Tue, 19 Jan 2016 23:43:00 -0800 > > That leads to an interesting idea—what if one were to smash all the .elc > files that temacs loads as part of the undump process and then put them > into the temacs object, maybe by relinking them in as a giant array > (portable), or by shoving them into their own section with objcopy (not > really portable)? That would make the resulting binary basically usable > without any lisp files, plus it might help with I/O speed since 100 > different files don't have to be read. You have described what unexec does, in some of its incarnations. We just put those *.elc files into a separate executable, called 'emacs', and not in 'temacs'.