Make emacs work on alpha again after ELF introduction
This commit is contained in:
parent
c7fa3044a4
commit
c37dd99334
40
editors/emacs/patches/patch-src_unexelf.c
Normal file
40
editors/emacs/patches/patch-src_unexelf.c
Normal file
@ -0,0 +1,40 @@
|
||||
--- src/unexelf.c.orig Sun Feb 7 17:49:47 2021
|
||||
+++ src/unexelf.c Sun Feb 7 20:08:48 2021
|
||||
@@ -466,7 +466,7 @@
|
||||
#define hdrNil ((pHDRR)0)
|
||||
#endif
|
||||
|
||||
-#ifdef __NetBSD__
|
||||
+#if __NetBSD__
|
||||
/*
|
||||
* NetBSD does not have normal-looking user-land ELF support.
|
||||
*/
|
||||
@@ -500,6 +500,11 @@
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
# include <sys/exec_elf.h>
|
||||
+# ifdef __alpha__
|
||||
+# include <sys/exec_ecoff.h>
|
||||
+# define HDRR struct ecoff_symhdr
|
||||
+# define pHDRR HDRR *
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
#if __GNU_LIBRARY__ - 0 >= 6
|
||||
@@ -512,10 +517,12 @@
|
||||
# else
|
||||
# define ElfBitsW(bits, type) Elf/**/bits/**/_/**/type
|
||||
# endif
|
||||
-# ifdef _LP64
|
||||
-# define ELFSIZE 64
|
||||
-# else
|
||||
-# define ELFSIZE 32
|
||||
+# ifndef __OpenBSD__
|
||||
+# ifdef _LP64
|
||||
+# define ELFSIZE 64
|
||||
+# else
|
||||
+# define ELFSIZE 32
|
||||
+# endif
|
||||
# endif
|
||||
/* This macro expands `bits' before invoking ElfBitsW. */
|
||||
# define ElfExpandBitsW(bits, type) ElfBitsW (bits, type)
|
Loading…
x
Reference in New Issue
Block a user