annotate src/s/sunos4-0-shr.h @ 38:1a767b41a199 r19-15b102

Import from CVS: tag r19-15b102
author cvs
date Mon, 13 Aug 2007 08:54:01 +0200
parents 4103f0995bd7
children 6b37e6ddd302
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 4
diff changeset
1 /* Synched up with: FSF 19.31. (Split off from sunos4-shr.h.) */
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
2
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
3 /* This file permits building Emacs with a shared libc on Sunos 4.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
4 To make this work, you must completely replace your C shared library
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
5 using one of the SunOS 4.1.x jumbo replacement patches from Sun.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
6 Here are the patch numbers for Sunos 4.1.3:
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
7 100890-10 SunOS 4.1.3: domestic libc jumbo patch
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
8 100891-10 SunOS 4.1.3: international libc jumbo patch */
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
9
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
10
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11 #include "sunos4-0.h"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13 /* Say that the text segment of a.out includes the header;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14 the header actually occupies the first few bytes of the text segment
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15 and is counted in hdr.a_text. */
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17 /* Misleading! Actually gets loaded after crt0.o */
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18 #undef START_FILES
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 #define START_FILES pre-crt0.o
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21 /*
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
22 * Kludge! can't get at symbol "start" in std crt0.o
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
23 * Who the #$%&* decided to remove the __ characters!
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
24 * Someone needs to fix this in sysdep.c with an #ifdef BROKEN_START in
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
25 * sysdep.c. We do not use this address so any value should do really. Still
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
26 * may need it in the future?
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
27 */
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
28 #define BROKEN_START
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29 #ifndef TEXT_START
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
30 #define TEXT_START 0x2020
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
31 #endif
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
32
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
33 #undef UNEXEC
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
34 #define UNEXEC unexsunos4.o
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
35 #ifndef RUN_TIME_REMAP
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
36 #define RUN_TIME_REMAP
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
37 #endif
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
38 #define ORDINARY_LINK
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
39 #define SUNOS4_SHARED_LIBRARIES
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
40
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
41 #undef LD_SWITCH_SYSTEM
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
42
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
43 #undef SYSTEM_MALLOC
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
44 #ifndef GNU_MALLOC
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
45 #define GNU_MALLOC
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
46 #endif
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
47 #ifndef REL_ALLOC
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
48 #define REL_ALLOC
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
49 #endif
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
50
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
51 #undef USE_DL_STUBS
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
52
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
53 #ifndef HAVE_X11R6
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
54 /* With X11R5 it was reported that linking -lXmu dynamically
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
55 did not work. With X11R6, it does work; and since normally
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
56 only the dynamic libraries are available, we should use them. */
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
57 #ifdef __GNUC__
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
58 #define LIBXMU -Xlinker -Bstatic -lXmu -Xlinker -Bdynamic
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
59 #else
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
60 #define LIBXMU -Bstatic -lXmu -Bdynamic
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
61 #endif
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
62
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
63 #endif /* not HAVE_X11R6 */