|
|
1.1 root 1: /* Target definitions for GNU compiler for Intel 80386 running Solaris 2
2: Copyright (C) 1993 Free Software Foundation, Inc.
3:
4: Written by Fred Fish ([email protected]).
5:
6: This file is part of GNU CC.
7:
8: GNU CC is free software; you can redistribute it and/or modify
9: it under the terms of the GNU General Public License as published by
10: the Free Software Foundation; either version 2, or (at your option)
11: any later version.
12:
13: GNU CC is distributed in the hope that it will be useful,
14: but WITHOUT ANY WARRANTY; without even the implied warranty of
15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: GNU General Public License for more details.
17:
18: You should have received a copy of the GNU General Public License
19: along with GNU CC; see the file COPYING. If not, write to
20: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21:
22: #include "i386/sysv4.h"
23:
24: /* The Solaris 2.0 x86 linker botches alignment of code sections.
25: It tries to align to a 16 byte boundary by padding with 0x00000090
26: ints, rather than 0x90 bytes (nop). This generates trash in the
27: ".init" section since the contribution from crtbegin.o is only 7
28: bytes. The linker pads it to 16 bytes with a single 0x90 byte, and
29: two 0x00000090 ints, which generates a segmentation violation when
30: executed. This macro forces the assembler to do the padding, since
31: it knows what it is doing. */
32:
33: #define FORCE_INIT_SECTION_ALIGN do { asm (ALIGN_ASM_OP ## " 16"); } while (0)
1.1.1.2 root 34:
1.1.1.3 ! root 35: /* Add "sun" to the list of symbols defined for SVR4. */
! 36: #undef CPP_PREDEFINES
! 37: #define CPP_PREDEFINES \
! 38: "-Di386 -Dunix -D__svr4__ -Dsun \
! 39: -Asystem(unix) -Asystem(svr4) -Acpu(i386) -Amachine(i386)"
! 40:
1.1.1.2 root 41: #undef CPP_SPEC
42: #define CPP_SPEC "\
43: %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}"
44:
45: #undef LIB_SPEC
46: #define LIB_SPEC \
47: "%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \
48: %{!shared:%{!symbolic:-lc}} \
49: crtend.o%s \
50: %{!shared:%{!symbolic:%{pg:crtn.o%s}%{!pg:crtn.o%s}}}"
51:
52: /* This should be the same as in svr4.h, except with -R added. */
53: #undef LINK_SPEC
54: #define LINK_SPEC \
55: "%{h*} %{V} %{v:%{!V:-V}} \
56: %{b} %{Wl,*:%*} \
57: %{static:-dn -Bstatic} \
58: %{shared:-G -dy} \
59: %{symbolic:-Bsymbolic -G -dy} \
60: %{G:-G} \
61: %{YP,*} \
62: %{R*} \
63: %{compat-bsd: \
64: %{!YP,*:%{p:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
65: %{!p:-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib}} \
66: -R /usr/ucblib} \
67: %{!compat-bsd: \
68: %{!YP,*:%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
69: %{!p:-Y P,/usr/ccs/lib:/usr/lib}}} \
70: %{Qy:} %{!Qn:-Qy}"
71:
72: /* This defines which switch letters take arguments.
73: It is as in svr4.h but with -R added. */
74:
75: #undef SWITCH_TAKES_ARG
76: #define SWITCH_TAKES_ARG(CHAR) \
77: ( (CHAR) == 'D' \
78: || (CHAR) == 'U' \
79: || (CHAR) == 'o' \
80: || (CHAR) == 'e' \
81: || (CHAR) == 'u' \
82: || (CHAR) == 'I' \
83: || (CHAR) == 'm' \
84: || (CHAR) == 'L' \
85: || (CHAR) == 'R' \
86: || (CHAR) == 'A' \
87: || (CHAR) == 'h' \
88: || (CHAR) == 'z')
89:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.