From owner-ports-jp@jp.freebsd.org  Thu Sep 10 15:43:23 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.1+3.0W/8.7.3) id PAA09993;
	Thu, 10 Sep 1998 15:43:23 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from ns.jsys.co.jp (ns.jsys.co.jp [202.33.240.82])
	by jaz.jp.freebsd.org (8.9.1+3.0W/8.7.3) with ESMTP id PAA09984
	for <ports-jp@jp.freebsd.org>; Thu, 10 Sep 1998 15:43:20 +0900 (JST)
	(envelope-from ienaga@skywalk.jsys.co.jp)
Received: from cosmos.jsys.co.jp (cosmos.jsys.co.jp [172.31.80.5])
	by ns.jsys.co.jp (8.9.1/8.9.1) with ESMTP id PAA14964
	for <ports-jp@jp.freebsd.org>; Thu, 10 Sep 1998 15:43:17 +0900 (JST)
Received: from skywalk.jsys.co.jp (skywalk.jsys.co.jp [172.31.49.72])
	by cosmos.jsys.co.jp (8.8.8/8.8.8/NOTES) with ESMTP id PAA01837
	for <ports-jp@jp.freebsd.org>; Thu, 10 Sep 1998 15:43:16 +0900 (JST)
Received: (from ienaga@localhost) by skywalk.jsys.co.jp (8.8.8/3.5Wpl2) id PAA13820; Thu, 10 Sep 1998 15:43:16 +0900 (JST)
To: ports-jp@jp.freebsd.org
References: <199809031135.EAA19385@silvia.hip.berkeley.edu>
 <rysvhn0obzv.fsf@skywalk.jsys.co.jp>
 <x7yaruvfjz.fsf@kotonoha.tom-yam.or.jp>
 <rys3ea2ujvy.fsf@skywalk.jsys.co.jp>
X-Emacs: 21.0 "Finnish Landrace" XEmacs Lucid with mule
MIME-Version: 1.0 (generated by SEMI 1.8.2 - "Kosugi")
Content-Type: multipart/mixed;
 boundary="Multipart_Thu_Sep_10_15:43:16_1998-1"
Content-Transfer-Encoding: 7bit
From: Kazuyuki IENAGA <ienaga@jsys.co.jp>
Date: 10 Sep 1998 15:43:16 +0900
In-Reply-To: Kazuyuki IENAGA's message of "09 Sep 1998 10:58:41 +0900"
Message-ID: <rysk93cbh8b.fsf_-_@skywalk.jsys.co.jp>
Lines: 86
X-Mailer: Semi-gnus 6.8.17 (based on Gnus 5.6.42; for SEMI 1.8, FLIM 1.8/1.9)
X-Face:  9{'tf33,11#K2A'RDL?p:oEk{~%v;iFL63&]_`FnV~q9]UoqU:"Z*;!l8*yw(91jLdj'8ca
 ~kD1b`lzQ>o[fU=>6g(Er\.fiQPm[~<w?Is+rkeQnV9B~6|>`*Nw1,kCrfo(IH??{i~'F
Reply-To: ports-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980820
X-Sequence: ports-jp 4313
Subject: [ports-jp 4313] 3.0 ELF and XEmacs (Re: need info of FreeBSD ELF)
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org


--Multipart_Thu_Sep_10_15:43:16_1998-1
Content-Type: text/plain; charset=ISO-2022-JP

$B2H1J$G$9!%(B $B$=$N8e$NJs9p$G$9!%(B

> Murata Shuuichirou <mrt@da.airnet.ne.jp> writes:
> 
> > > Emacs 20.3$B$N(B unexelf.c$B$r;29M$K(B 3.0$B$KE,MQ$5$;$h$&$H;W$C$F$$$k$H$3$m$J$N$G(B
> > > $B$9$,!$2?$+>pJs$,$"$j$^$7$?$i$h$m$7$/$*4j$$$7$^$9!%(B
> > 
> > emacs-20.3 $B$r$_$J$,$i$D$/$C$?%Q%C%A(B(against 21.0-b55)$B$G0l1~F0$/(B
> > $B$h$&$K$G$-$^$7$?!#$3$N%a%$%k$NKvHx$K$D$1$^$9!#$&$A$K$O(B elf $B$N(B 
> > X libraries $B$,$J$$$N$G(B --without-x $B$G$7$+;n$7$F$$$^$;$s!#(B
> 
> $B$=$&$+!D(B X$B$b(B ELF$B2=$7$J$$$H0UL#$,L5$$$G$9$M!%(B $B$=$&$9$k$H$^$9$^$9(B
> monster$B%^%7%s$NI,MWEY$,A}$7$^$9$M!%(B
> X$B$N(B make$B$J$s$F(B R6.1$B$0$i$$$+$i$:$C$H$d$C$F$J$$$G$9(B ;-

$B$=$N8e!$$`$i$?$5$s$H$$$/$D$+$N$d$j<h$j$N8e!$$a$G$?$/%Q%C%A$r(B submit$B$7$^(B
$B$7$?!%(B $B$`$i$?$5$s!$$I$&$b$"$j$,$H$&$4$6$$$^$7$?!%(B
XFree86 3.3.2+patches$B$H(B Wnn4.2$B$NAH9g$o$;$G$N%F%9%H$b40N;$G$9!%(B

$B$_$J$5$s$I$&$b$"$j$,$H$&$4$6$$$^$7$?!%(B

$B2<$O(B 21.0-pre11$B$^$?$O(B pre12$B$KBP$9$k%Q%C%A$G$9!%(B

--Multipart_Thu_Sep_10_15:43:16_1998-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="21.0-b55-fbsd.patch"
Content-Transfer-Encoding: 7bit

===================================================================
RCS file: s/RCS/freebsd.h,v
retrieving revision 1.2
diff -u -r1.2 s/freebsd.h
--- s/freebsd.h	1998/05/25 01:10:24	1.2
+++ s/freebsd.h	1998/09/10 02:59:18
@@ -49,6 +49,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"
@@ -78,6 +92,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 */
===================================================================
RCS file: RCS/unexelf.c,v
retrieving revision 1.1
diff -u -r1.1 unexelf.c
--- unexelf.c	1998/09/10 02:59:38	1.1
+++ unexelf.c	1998/09/10 03:01:41
@@ -866,7 +866,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));
     }
 

--Multipart_Thu_Sep_10_15:43:16_1998-1--
