annotate src/m/sun3.h @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 /* machine description file for Sun 68000's OPERATING SYSTEM version 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 (for either 68000 or 68020 systems). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 #include "sun2.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #undef sun2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 #ifndef sun3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #define sun3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 /* The following line tells the configuration script what sort of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 operating system this machine is likely to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 USUAL-OPSYS="note"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 NOTE-START
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 Sun 1, 2 and 3 (-machine=sun1, -machine=sun2, -machine=sun3;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 -opsystem=bsd4-2 or -opsystem=sunos4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Whether you should use sun1, sun2 or sun3 depends on the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 VERSION OF THE OPERATING SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 you have. There are three machine types for different versions of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 SunOS. All are derived from Berkeley 4.2, meaning that you should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 use -opsystem=bsd4-2. Emacs 17 has run on all of them. You will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 need to use sun3 on Sun 2's running SunOS release 3.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 For SunOS release 4 on a Sun 3, use -machine=sun3 and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 -opsystem=sunos4. See the file share-lib/SUNBUG for how to solve
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 problems caused by bugs in the "export" version of SunOS 4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 NOTE-END */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /* Say that the text segment of a.out includes the header;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 the header actually occupies the first few bytes of the text segment
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 and is counted in hdr.a_text. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #define A_TEXT_OFFSET(HDR) sizeof (HDR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 /* This is the offset of the executable's text, from the start of the file. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* In case we are using floating point, work together with crt0.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 #ifndef __GNUC__
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
45 #define C_SWITCH_MACHINE "-fsoft"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 /* This line is needed if you are linking with X windows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 and the library xlib was compiled to use the 68881.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 For maximum cleanliness, don't edit this file;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 instead, insert this line in config.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 /* #define START_FILES crt0.o /usr/lib/Mcrt1.o */