all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* AIX 5.2 unexec problem
@ 2006-11-28 14:46 Joe Buehler
  2006-11-29  3:30 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Buehler @ 2006-11-28 14:46 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AIX 5.2 unexec problem
  2006-11-28 14:46 AIX 5.2 unexec problem Joe Buehler
@ 2006-11-29  3:30 ` Richard Stallman
  2006-12-01 13:58   ` Joe Buehler
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2006-11-29  3:30 UTC (permalink / raw)
  Cc: emacs-devel

    My question regards treatment of .data/.bss.  Is all of the read/write data supposed
    to be preserved across unexec?

It is abslutely necessary to dump the bss as data because it is filled
with Lisp objects that must be preserved in the dumped Emacs.

    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.

Can you fix it using that method?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AIX 5.2 unexec problem
  2006-11-29  3:30 ` Richard Stallman
@ 2006-12-01 13:58   ` Joe Buehler
  2006-12-03  3:14     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Buehler @ 2006-12-01 13:58 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:
>     My question regards treatment of .data/.bss.  Is all of the read/write data supposed
>     to be preserved across unexec?
>
> It is abslutely necessary to dump the bss as data because it is filled
> with Lisp objects that must be preserved in the dumped Emacs.
>   
Is all of bss supposed to be saved?  Even the parts that come after the
marker symbols in lastfile.c?

>     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.
>
> Can you fix it using that method?
>   
I am currently building with -bnoobjreorder in LDFLAGS and that does
indeed preserve the proper
object ordering.

-- 
Joe Buehler



<DIV><FONT size="1">

E-mail confidentiality.
--------------------------------
This e-mail contains confidential and / or privileged information belonging to Spirent Communications plc, its affiliates and / or subsidiaries. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution and / or the taking of any action based upon reliance on the contents of this transmission is strictly forbidden. If you have received this message in error please notify the sender by return e-mail and delete it from your system. If you require assistance, please contact our IT department at helpdesk@spirentcom.com.

Spirent Communications plc,
Spirent House, Crawley Business Quarter, Fleming Way, Crawley, West Sussex, RH10 9QL, United Kingdom.
Tel No. +44 (0) 1293 767676
Fax No. +44 (0) 1293 767677

Registered in England Number 470893
Registered at Spirent House, Crawley Business Quarter, Fleming Way, Crawley, West Sussex, RH10 9QL, United Kingdom 

Or if within the US,

Spirent Communications,
26750 Agoura Road, Calabasas, CA, 91302, USA.
Tel No. 1-818-676- 2300 

</FONT></DIV>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AIX 5.2 unexec problem
  2006-12-01 13:58   ` Joe Buehler
@ 2006-12-03  3:14     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-12-03  3:14 UTC (permalink / raw)
  Cc: emacs-devel

    I am currently building with -bnoobjreorder in LDFLAGS and that does
    indeed preserve the proper
    object ordering.

We can't add it to LDFLAGS directly, so please try using a file
aix5.h like this:

#include "aix4-2.h"

#define LD_SWITCH_SYSTEM -bnoobjreorder

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-03  3:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-28 14:46 AIX 5.2 unexec problem Joe Buehler
2006-11-29  3:30 ` Richard Stallman
2006-12-01 13:58   ` Joe Buehler
2006-12-03  3:14     ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.