Mercurial > emacs
annotate src/m/mips-siemens.h @ 13057:5c78211aa9e0
(te-escape, te-escape-help): Handle non-ASCII events.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 21 Sep 1995 20:54:35 +0000 |
parents | da5800b0c012 |
children | 2cd15d90fec6 |
rev | line source |
---|---|
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
1 /* m- file for Mips machines. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
2 Copyright (C) 1987, 1992, 1993, 1995 Free Software Foundation, Inc. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
3 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
4 This file contains some changes for our SVR4 based SINIX-Mips 5.4. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
5 I hope this is helpful to port the emacs to our RM?00 series and |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
6 maybe to the DC/OSx (Mips-based) machines of Pyramid Inc. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
7 (Marco.Walther@mch.sni.de) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
8 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
9 This file is part of GNU Emacs. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
10 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
11 GNU Emacs is free software; you can redistribute it and/or modify |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
12 it under the terms of the GNU General Public License as published by |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
13 the Free Software Foundation; either version 2, or (at your option) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
14 any later version. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
15 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
16 GNU Emacs is distributed in the hope that it will be useful, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
17 but WITHOUT ANY WARRANTY; without even the implied warranty of |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
19 GNU General Public License for more details. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
20 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
21 You should have received a copy of the GNU General Public License |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
22 along with GNU Emacs; see the file COPYING. If not, write to |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
23 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
7034 | 24 |
25 | |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
26 /* The following line tells the configuration script what sort of |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
27 operating system this machine is likely to run. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
28 USUAL-OPSYS="note" |
7034 | 29 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
30 NOTE-START |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
31 Use m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
32 Note that the proper m- file for the Decstation is m-pmax.h. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
33 This is the m- file for SNI RM*00 machines. Use s- sinix5-4.h file! |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
34 With this the file mips-siemens.h is obsolete. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
35 NOTE-END */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
36 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
37 /* The following three symbols give information on |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
38 the size of various data types. */ |
7034 | 39 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
40 #define SHORTBITS 16 /* Number of bits in a short */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
41 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
42 #define INTBITS 32 /* Number of bits in an int */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
43 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
44 #define LONGBITS 32 /* Number of bits in a long */ |
7034 | 45 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
46 /* Define BIG_ENDIAN iff lowest-numbered byte in a word |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
47 is the most significant byte. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
48 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
49 #define BIG_ENDIAN |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
50 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
51 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
52 * group of arguments and treat it as an array of the arguments. */ |
7035
39895883bb2e
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7034
diff
changeset
|
53 |
7826
6c242e506369
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7121
diff
changeset
|
54 #define NO_ARG_ARRAY |
6c242e506369
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7121
diff
changeset
|
55 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
56 /* Define WORD_MACHINE if addresses and such have |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
57 * to be corrected before they can be used as byte counts. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
58 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
59 #undef WORD_MACHINE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
60 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
61 /* Define how to take a char and sign-extend into an int. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
62 On machines where char is signed, this is a no-op. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
63 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
64 #define SIGN_EXTEND_CHAR(c) ((signed char)(c)) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
65 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
66 /* Now define a symbol for the cpu type, if your compiler |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
67 does not define it automatically: |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
68 Ones defined so far include vax, m68000, ns16000, pyramid, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
69 orion, tahoe, APOLLO and many others */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
70 #ifndef mips |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
71 # define mips |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
72 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
73 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
74 /* Use type int rather than a union, to represent Lisp_Object */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
75 /* This is desirable for most machines. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
76 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
77 #define NO_UNION_TYPE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
78 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
79 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
80 the 24-bit bit field into an int. In other words, if bit fields |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
81 are always unsigned. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
82 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
83 If you use NO_UNION_TYPE, this flag does not matter. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
84 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
85 #define EXPLICIT_SIGN_EXTEND |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
86 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
87 /* Data type of load average, as read out of kmem. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
88 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
89 #define LOAD_AVE_TYPE long |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
90 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
91 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
92 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
93 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
94 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
95 /* CDC EP/IX 1.4.3 uses /unix */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
96 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
97 #undef KERNEL_FILE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
98 #define KERNEL_FILE "/unix" |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
99 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
100 /* Define CANNOT_DUMP on machines where unexec does not work. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
101 Then the function dump-emacs will not be defined |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
102 and temacs will do (load "loadup") automatically unless told otherwise. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
103 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
104 #undef CANNOT_DUMP |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
105 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
106 /* Define VIRT_ADDR_VARIES if the virtual addresses of |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
107 pure and impure space as loaded can vary, and even their |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
108 relative order cannot be relied on. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
109 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
110 Otherwise Emacs assumes that text space precedes data space, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
111 numerically. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
112 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
113 /* #define VIRT_ADDR_VARIES */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
114 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
115 /* Define C_ALLOCA if this machine does not support a true alloca |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
116 and the one written in C should be used instead. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
117 Define HAVE_ALLOCA to say that the system provides a properly |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
118 working alloca function and it should be used. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
119 Define neither one if an assembler-language alloca |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
120 in the file alloca.s should be used. */ |
7826
6c242e506369
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7121
diff
changeset
|
121 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
122 #ifdef __GNUC__ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
123 #define HAVE_ALLOCA |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
124 #else |
9517 | 125 #define C_ALLOCA |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
126 #endif |
9517 | 127 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
128 /* Define NO_REMAP if memory segmentation makes it not work well |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
129 to change the boundary between the text section and data section |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
130 when Emacs is dumped. If you define this, the preloaded Lisp |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
131 code will not be sharable; but that's better than failing completely. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
132 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
133 #define NO_REMAP |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
134 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
135 /* Describe layout of the address space in an executing process. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
136 /* MARCO ??? |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
137 */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
138 #define TEXT_START 0x400000 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
139 /* |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
140 #define DATA_START 0x10000000 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
141 #define DATA_SEG_BITS 0x10000000 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
142 */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
143 #ifdef UNEXEC |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
144 #undef UNEXEC |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
145 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
146 #define UNEXEC unexelfsni.o |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
147 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
148 #undef ORDINARY_LINK |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
149 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
150 #undef LIBS_DEBUG |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
151 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
152 /* Alter some of the options used when linking. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
153 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
154 #define LIBS_MACHINE -lmld |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
155 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
156 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
157 #ifdef LIB_STANDARD |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
158 #undef LIB_STANDARD |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
159 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
160 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
161 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
162 #ifdef __GNUC__ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
163 #define C_DEBUG_SWITCH |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
164 #define C_OPTIMIZE_SWITCH -O |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
165 #define LD_SWITCH_MACHINE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
166 #else |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
167 #define C_DEBUG_SWITCH -DSYSV |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
168 #define C_OPTIMIZE_SWITCH -DSYSV |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
169 #define LD_SWITCH_MACHINE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
170 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
171 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
172 #if defined(HAVE_X_WINDOWS) && defined(HAVE_X11) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
173 #define HAVE_VFORK /* Graciously provided by libX.a */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
174 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
175 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
176 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
177 /* The standard definitions of these macros would work ok, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
178 but these are faster because the constants are short. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
179 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
180 #define XUINT(a) (((unsigned)(a) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS)) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
181 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
182 #define XSET(var, type, ptr) \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
183 ((var) = \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
184 ((int)(type) << VALBITS) \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
185 + (((unsigned) (ptr) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS))) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
186 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
187 #define XSETINT(a, b) XSET(a, XTYPE(a), b) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
188 #define XSETUINT(a, b) XSET(a, XTYPE(a), b) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
189 #define XSETPNTR(a, b) XSET(a, XTYPE(a), b) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
190 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
191 #define XUNMARK(a) \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
192 ((a) = \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
193 (((unsigned)(a) << (INTBITS-GCTYPEBITS-VALBITS)) \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
194 >> (INTBITS-GCTYPEBITS-VALBITS))) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
195 |