From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Dumper problems and a possible solutions Date: Wed, 25 Jun 2014 17:43:00 -0400 Message-ID: References: <20140624171955.GS179@brightrain.aerifal.cx> <53AB0EF8.4090608@yandex.ru> <831tucrguf.fsf@gnu.org> <20140625183241.GW179@brightrain.aerifal.cx> <83wqc4q0xl.fsf@gnu.org> <20140625190333.GZ179@brightrain.aerifal.cx> <20140625202403.GB179@brightrain.aerifal.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403732613 2967 80.91.229.3 (25 Jun 2014 21:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2014 21:43:33 +0000 (UTC) Cc: Eli Zaretskii , dmantipov@yandex.ru, emacs-devel@gnu.org To: Rich Felker Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 25 23:43:28 2014 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 1WzuyV-00086n-PK for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2014 23:43:27 +0200 Original-Received: from localhost ([::1]:41127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuyV-0006fV-CE for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2014 17:43:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuyK-0006fD-Qk for emacs-devel@gnu.org; Wed, 25 Jun 2014 17:43:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzuyD-0002fp-CO for emacs-devel@gnu.org; Wed, 25 Jun 2014 17:43:16 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:36351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzuy5-0002c8-Di; Wed, 25 Jun 2014 17:43:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLDiYSFBgNJC6HVgjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLDiYSFBgNJC6HVgjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="69562903" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jun 2014 17:43:00 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3FCA566302; Wed, 25 Jun 2014 17:43:00 -0400 (EDT) In-Reply-To: <20140625202403.GB179@brightrain.aerifal.cx> (Rich Felker's message of "Wed, 25 Jun 2014 16:24:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:172731 Archived-At: > With the approach of dumping a C array containing references to > offsets within itself, this is completely transparent to the > application. The linker (ld) produces the right R_${ARCH}_RELATIVE > relocation records in the data segment and the dynamic linker applies > them at runtime. Two problems, here: - we're still talking about performing relocation of all heap references during startup (not that it's a problem, of course). Maybe we don't need to do it ourselves, but it still has to happen. - Can the ld.so loader generate the *tagged* references used in the heap? Stefan