From xemacs-m  Mon Jul  7 05:07:22 1997
Received: from dde.dde.dk (dde.dde.dk [152.95.32.2])
	by xemacs.org (8.8.5/8.8.5) with SMTP id FAA03063
	for <xemacs-beta@xemacs.org>; Mon, 7 Jul 1997 05:05:59 -0500 (CDT)
Received: by dde.dde.dk (5.61/9.3) 
	id AA24703; Mon, 7 Jul 97 12:06:51 +0200
Received: from halfway.dde.dk by dde.dde.dk (5.61/9.3) with SMTP 
	id AA04153; Mon, 7 Jul 97 12:06:51 +0200
Received: by halfway.dde.dk (4.1/9.7) 
	id AA14617; Mon, 7 Jul 97 10:03:22 GMT
To: cognot@ensg.u-nancy.fr
Cc: xemacs-beta@xemacs.org
Subject: Re: fix to unexelfsgi.c
References: <19970629170951.31459@iria.mines.u-nancy.fr> <199706291537.KAA03033@xemacs.org>
Reply-To: Peter Skov Knudsen <knu@dde.dk>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Peter Skov Knudsen <knu@dde.dk>
Date: 07 Jul 1997 10:03:21 +0000
In-Reply-To: Richard Cognot's message of Sun, 29 Jun 1997 11:37:07 -0400 (EDT)
Message-Id: <yljoh8f6uxi.fsf@halfway.dde.dk>
Lines: 55
X-Mailer: Gnus v5.4.52/XEmacs 20.2

Richard Cognot <cognot@ensg.u-nancy.fr> writes:

> >>>>> "Olivier" == Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr> writes:
> 
>     Olivier> I overlooked part of the problem when adding .sbss
>     Olivier> support.  Please apply this patch, irix users :-)
> 
>     Olivier> Modulo this message and the others, count successes of
>     Olivier> our dear Sofia on irix 6.2 in o32, n32 and 64bits modes
>     Olivier> :-)
> 
> Oh, oh, oh... 
> 
> Does this also fix the problem of the dependency of the dumped xemacs
> on libc, making it crash if used on a system which libc version is even
> slightly different from the one it was dumped with? If yes, then it
> should be included in 19.15, too...
> 
> Richard.

Hi,

I had a similar problem when porting XEmacs to our own architecture,
the Supermax Enterprise Server, which is somehow similar to the
SGI. The attached diff solves the problem with libc dependencies on
our architecture, so it just might apply to the SGI also.

--- unexelf.c   1997/04/16 16:35:49
***************
*** 800,806 ****
         instead of the old file.  */
        if (!strcmp (old_section_names + NEW_SECTION_H (n).sh_name, ".data")
          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
!                     ".data1"))
        src = (caddr_t) OLD_SECTION_H (n).sh_addr;
        else
        src = old_base + OLD_SECTION_H (n).sh_offset;
--- 800,808 ----
         instead of the old file.  */
        if (!strcmp (old_section_names + NEW_SECTION_H (n).sh_name, ".data")
          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
!                     ".data1")
!          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
!                      ".got"))
        src = (caddr_t) OLD_SECTION_H (n).sh_addr;
        else
        src = old_base + OLD_SECTION_H (n).sh_offset;

--
Peter Skov Knudsen                |          Phone: +45 4284 5011
Dansk Data Elektronik A/S         |          Fax:   +45 4284 5220
Herlev Hovedgade 199              |          Email: knu@dde.dk
DK-2730 Herlev, Denmark           |


