Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 1998 10:55:53 -0700 (PDT)
From:      taoka@infonets.hiroshima-u.ac.jp
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   ports/8092: ELF patch for editors/xemacs20 (XEmacs 20.4)
Message-ID:  <199809291755.KAA05135@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         8092
>Category:       ports
>Synopsis:       ELF patch for editors/xemacs20 (XEmacs 20.4)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 29 11:00:00 PDT 1998
>Last-Modified:
>Originator:     Satoshi Taoka
>Organization:
Hiroshima Univ. in Japan
>Release:        FreeBSD 3.0-19980921-BETA
>Environment:
>Description:
This is a ELF patch for editors/xemacs20 (XEmacs 20.4).
This included the next mail:
     http://www.xemacs.org/list-archives/xemacs-patches/

     To: xemacs-beta@xemacs.org 
     Subject: [PATCH] for 21.0-pre11 "Finnish Landrace" (Re: FreeBSD 3.0, ELF and XEmacs) 
     From: Kazuyuki IENAGA <ienaga@jsys.co.jp> 
     Date: 10 Sep 1998 13:29:23 +0900 
     Cc: xemacs-patches@xemacs.org, Murata Shuuichirou <mrt@da.airnet.ne.jp> 
     In-Reply-To: Kazuyuki IENAGA's message of "07 Sep 1998 12:01:05 +0900" 
     References: <87hfylpyp6.fsf@zeppelin.net> <m267f1d9yf.fsf@altair.xemacs.org><87hfyltw44.fsf@zeppelin.net>
     <m2vhn1bm18.fsf@altair.xemacs.org><rys1zpopqxa.fsf@skywalk.jsys.co.jp> 

This patch was made by Mr. Murata Shuuichirou and is for XEmacs 21.0.
# Thanks Mr. Murata.


>How-To-Repeat:

>Fix:
[the new patch file patch-ah]

--- orig/s/freebsd.h	Mon Oct 13 13:47:36 1997
+++ src/s/freebsd.h	Tue Sep 29 12:08:15 1998
@@ -45,6 +45,20 @@
 
 #define LIBS_TERMCAP "-ltermcap"
 
+#ifdef __ELF__ /* since from 3.0-CURRENT(maybe 19980831 or later) */
+#ifndef NOT_C_CODE
+#include <stddef.h>
+#endif
+#define LD_SWITCH_SYSTEM
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
+#define UNEXEC unexelf.o
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
+#define LINKER "$(CC) -nostdlib"
+#undef LIB_GCC
+#define LIB_GCC
+
+#else /* not __ELF__ */
+
 #ifndef NO_SHARED_LIBS
 #if 0 /* mrb */
 #define LIB_GCC "-lgcc"
@@ -74,6 +88,8 @@
 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
 #endif /* __FreeBSD__ */
 #endif /* NO_SHARED_LIBS */
+
+#endif /* not __ELF__ */
 
 #define HAVE_GETLOADAVG
 /* #define NO_TERMIO */ /* detected in configure */
--- orig/unexelf.c	Fri Feb 13 08:28:06 1998
+++ src/unexelf.c	Tue Sep 29 12:08:15 1998
@@ -846,7 +846,9 @@
 
       for (; symp < symendp; symp ++)
 	if (strcmp ((char *) (symnames + symp->st_name), "_end") == 0
-	    || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0)
+	    || strcmp ((char *) (symnames + symp->st_name), "end") == 0
+	    || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0
+	    || strcmp ((char *) (symnames + symp->st_name), "edata") == 0)
 	  memcpy (&symp->st_value, &new_bss_addr, sizeof (new_bss_addr));
     }
 

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809291755.KAA05135>