Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Markus Dickebohm <m.dickebohm@uni-koeln.de>
Subject: Re: XEmacs 19.15 success (was: XEmacs 19.15 on Linux Alpha)
Date: 04 Apr 1997 18:27:47 +0200	[thread overview]
Message-ID: <84186979948a540364372d187b60dfa2.axp-list@archive.invalid> (raw)

>> Brady Montz schrieb am Fri, 4 Apr 1997 08:57:12 -0700:

> I'm not on the axp-list, so I've only been following this from the
> xemacs newsgroups, so I've probably missed some stuff.

I don't think, that you really missed something. It's just that I
wrote the message to the axp-list also.

> If you could tell me what stuff you did besides the patch, I'll try
> to put a patch together and send it in again. I'll also stick it on
> my website.  As far as I can remember, it's only adding some stuff
> to make some files dynamically linked and getting the unexec code
> from emacs.

Yes, I think this is it primarily: in my posting to comp.emacs.xemacs
I already wrote which additional patches were necessary. I add the
diff's against XEmacs-19.15 at the end of this message.

Just to be sure that I don't forget anything I will enumerate the
additional requirements here:
	o steal unexelf1.c from FSF Emacs
        o make shared libraries from liblw.a and libcompface.a (this
          is why I thought that patches are a bit useless...)
        o add "-rpath=/usr/libexec/xemacs-19.15/alpha-linux" to
          ldflags in src/Makefile
        o place the two shared libaries in the directory mentioned
          above  

Many thanks again for your help in getting XEmacs-19.15 to run on
Linux Alpha again. I'm really happy about this.

Have a nice weekend,
Markus

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

diff -u -r xemacs-19.15/src/gmalloc.c xemacs-19.15-new/src/gmalloc.c
--- xemacs-19.15/src/gmalloc.c	Sun Mar  2 04:44:23 1997
+++ xemacs-19.15-new/src/gmalloc.c	Fri Apr  4 15:38:48 1997
@@ -1299,8 +1299,8 @@
 #ifdef __GNU_LIBRARY__
 /* It is best not to declare this and cast its result on foreign operating
    systems with potentially hostile include files.  */
-#if !(defined(linux) && defined(sparc))
-extern __ptr_t __sbrk __P ((int increment));
+#ifndef linux
+ extern __ptr_t __sbrk __P ((int increment)); 
 #endif
 #endif
 #endif
diff -u -r xemacs-19.15/src/m/alpha.h xemacs-19.15-new/src/m/alpha.h
--- xemacs-19.15/src/m/alpha.h	Wed Dec 18 04:39:06 1996
+++ xemacs-19.15-new/src/m/alpha.h	Fri Apr  4 15:07:06 1997
@@ -25,7 +25,7 @@
    USUAL-OPSYS="note"
 
 NOTE-START
-Use -opsystem=osf1
+Use -opsystem=linux
 NOTE-END
 
 */
@@ -106,7 +106,14 @@
    Define neither one if an assembler-language alloca
    in the file alloca.s should be used.  */
 
+/* If compiling with GCC, let GCC implement alloca.  */
+#if defined(__GNUC__) && !defined(alloca)
+#define alloca(n) __builtin_alloca(n)
 #define HAVE_ALLOCA
+#else
+#define HAVE_ALLOCA
+#endif
+
 
 /* GNU malloc and the relocating allocator do not work together
    with X.   [Who wrote that?]  */
@@ -149,8 +156,10 @@
 
 /* Describe layout of the address space in an executing process.  */
 
+#ifndef __ELF__
 #define TEXT_START    0x120000000
 #define DATA_START    0x140000000
+#endif
 
 #if 0 /* #### XEmacs: see below */
 /* This is necessary for mem-limits.h, so that start_of_data gives
@@ -181,17 +190,17 @@
 #ifdef OSF1
 #define LIBS_DEBUG
 #define START_FILES pre-crt0.o 
+#define UNEXEC unexalpha.o
 #endif /* OSF1 */
 
 #ifdef LINUX
 /* This controls a conditional in main.  */
-#define LINUX_SBRK_BUG
+#define UNEXEC unexelf1.o
+#undef LINUX_SBRK_BUG
 #endif /* LINUX */
 
 /* The program to be used for unexec. */
 
-#define UNEXEC unexalpha.o
-
 #define PNTR_COMPARISON_TYPE unsigned long
 
 #if 0
@@ -226,10 +235,10 @@
   while (0)
 #endif /* OSF1 */
 
-#ifdef linux
+#ifndef linux
 #define COFF
 #define TEXT_END ({ extern int _etext; &_etext; })
-#define DATA_END ({ extern int _EDATA; &_EDATA; })
+#define DATA_END ({ extern int _EDATA; &_EDATA; }) */
 #endif /* linux */
 
 /* XEmacs: The Dec CC compiler (but apparently not GCC, which uses different
diff -u -r xemacs-19.15/src/s/linux.h xemacs-19.15-new/src/s/linux.h
--- xemacs-19.15/src/s/linux.h	Wed Mar 26 05:34:49 1997
+++ xemacs-19.15-new/src/s/linux.h	Thu Apr  3 12:51:03 1997
@@ -190,8 +190,8 @@
 #define HAVE_RINT 1
 
 #ifdef __ELF__
-#define UNEXEC unexelf.o
-#define UNEXEC_USE_MAP_PRIVATE
+/* #define UNEXEC unexelf.o
+#define UNEXEC_USE_MAP_PRIVATE */
 #endif
 
 #ifdef LINUX_QMAGIC

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-04-04 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-04 16:27 Markus Dickebohm [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-04-04 14:54 XEmacs 19.15 success (was: XEmacs 19.15 on Linux Alpha) Markus Dickebohm
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox