aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-02 00:09:40 +0000
committerRichard M. Stallman1997-06-02 00:09:40 +0000
commit6538ee2e81fe9297c3a89dcc039a885c815b263b (patch)
tree1df916cf4634f2ca1426b9239b6abc0f442dbd92 /src
parent9e30760d44de1ec848ffe20e636beb62bed67567 (diff)
downloademacs-6538ee2e81fe9297c3a89dcc039a885c815b263b.tar.gz
emacs-6538ee2e81fe9297c3a89dcc039a885c815b263b.zip
[__NetBSD__]: Don't include filehdr.h, aouthdr.h
scnhdr.h or syms.h. Add many other conditionalized definitions.
Diffstat (limited to 'src')
-rw-r--r--src/unexalpha.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/unexalpha.c b/src/unexalpha.c
index 2adfd1fa57e..6fe97e6e1b3 100644
--- a/src/unexalpha.c
+++ b/src/unexalpha.c
@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */
27#include <sys/mman.h> 27#include <sys/mman.h>
28#include <stdio.h> 28#include <stdio.h>
29#include <varargs.h> 29#include <varargs.h>
30#ifndef __NetBSD__
30#include <filehdr.h> 31#include <filehdr.h>
31#include <aouthdr.h> 32#include <aouthdr.h>
32#include <scnhdr.h> 33#include <scnhdr.h>
@@ -35,6 +36,42 @@ Boston, MA 02111-1307, USA. */
35# include <reloc.h> 36# include <reloc.h>
36# include <elf_abi.h> 37# include <elf_abi.h>
37#endif 38#endif
39#else /* __NetBSD__ */
40/*
41 * NetBSD/Alpha does not have 'normal' user-land ECOFF support because
42 * there's no desire to support ECOFF as the executable format in the
43 * long term.
44 */
45#include <sys/exec_ecoff.h>
46
47/* Structures, constants, etc., that NetBSD defines strangely. */
48#define filehdr ecoff_filehdr
49#define aouthdr ecoff_aouthdr
50#define scnhdr ecoff_scnhdr
51#define HDRR struct ecoff_symhdr
52#define pHDRR HDRR *
53#define cbHDRR sizeof(HDRR)
54#define ALPHAMAGIC ECOFF_MAGIC_NETBSD_ALPHA
55#define ZMAGIC ECOFF_ZMAGIC
56
57/* Misc. constants that NetBSD doesn't define at all. */
58#define ALPHAUMAGIC 0617
59#define _MIPS_NSCNS_MAX 35
60#define STYP_TEXT 0x00000020
61#define STYP_DATA 0x00000040
62#define STYP_BSS 0x00000080
63#define STYP_RDATA 0x00000100
64#define STYP_SDATA 0x00000200
65#define STYP_SBSS 0x00000400
66#define STYP_INIT 0x80000000
67#define _TEXT ".text"
68#define _DATA ".data"
69#define _BSS ".bss"
70#define _INIT ".init"
71#define _RDATA ".rdata"
72#define _SDATA ".sdata"
73#define _SBSS ".sbss"
74#endif /* __NetBSD__ */
38 75
39static void fatal_unexec (); 76static void fatal_unexec ();
40static void mark_x (); 77static void mark_x ();