From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Buehler Newsgroups: gmane.emacs.devel Subject: AIX 5.2 unexec problem Date: Tue, 28 Nov 2006 09:46:48 -0500 Organization: Spirent Communications, Inc. Message-ID: Reply-To: jbuehler@spirentcom.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164725573 15768 80.91.229.2 (28 Nov 2006 14:52:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 14:52:53 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 28 15:52:51 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gp4KE-0006UV-Sk for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 15:52:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gp4KE-00033X-Bl for ged-emacs-devel@m.gmane.org; Tue, 28 Nov 2006 09:52:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gp4Et-0006ro-HR for emacs-devel@gnu.org; Tue, 28 Nov 2006 09:47:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gp4Er-0006pw-MP for emacs-devel@gnu.org; Tue, 28 Nov 2006 09:47:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gp4Eq-0006pT-VW for emacs-devel@gnu.org; Tue, 28 Nov 2006 09:47:13 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gp4Eq-0005Bf-AH for emacs-devel@gnu.org; Tue, 28 Nov 2006 09:47:12 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gp4Eg-00051Q-6Z for emacs-devel@gnu.org; Tue, 28 Nov 2006 15:47:02 +0100 Original-Received: from netrokpix001.spirentcom.com ([208.22.58.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Nov 2006 15:47:02 +0100 Original-Received: from jbuehler by netrokpix001.spirentcom.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Nov 2006 15:47:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: netrokpix001.spirentcom.com User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) X-Enigmail-Version: 0.94.0.0 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62950 Archived-At: Based on an examination of the file headers, the AIX unexec is simply moving all of .bss into .data. It does not attempt to move any part of .data to .text. I assume that no part of .data is moved to .text as a programming simplification. Less memory will be shared between emacs instances, but everything will work fine. My question regards treatment of .data/.bss. Is all of the read/write data supposed to be preserved across unexec? If it is not, the AIX unexec is wrong, and further, the AIX link is incorrect: Newer versions of the AIX linker reorder objects, so the manual placement of lastfile.o on the link line doesn't cause the desired memory layout. The option -bnoobjreorder needs to be added to the link command line to turn off object reordering. -- Joe Buehler