OSDN Git Service

2002-04-12 Eric Norum <eric.norum@usask.ca>
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / seq-sysv3.h
1 /* Sequent DYNIX/ptx 1.x (SVr3) */
2
3 #define TARGET_VERSION fprintf (stderr, " (80386, ATT syntax)"); 
4
5 /* Sequent Symmetry SVr3 doesn't have crtn.o; crt1.o doesn't work
6    but crt0.o does.  */
7
8 #undef STARTFILE_SPEC
9 #define STARTFILE_SPEC  \
10 "%{pg:gcrt0.o%s}\
11  %{!pg:%{posix:%{p:mcrtp0.o%s}%{!p:crtp0.o%s}}\
12        %{!posix:%{p:mcrt0.o%s}%{!p:crt0.o%s}}} crtbegin.o%s\
13  %{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp}"
14
15 #undef LIB_SPEC
16 #define LIB_SPEC \
17 "%{posix:-lcposix}\
18  %{shlib:-lc_s}\
19  %{fshared-data:-lpps -lseq} -lc crtend.o%s"
20
21 #undef CPP_SPEC
22 #define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} -D_SEQUENT_=1"
23
24 /* Although the .init section is used, it is not automatically invoked.
25    This because the _start() function in /lib/crt0.o never calls anything
26    from the .init section */
27 #define INVOKE__main
28
29 /* Assembler pseudo-op for initialized shared variables (.shdata).  */
30 #undef  SHARED_SECTION_ASM_OP
31 #define SHARED_SECTION_ASM_OP "\t.section .shdata, \"ws\""
32
33 /* Assembler pseudo-op for uninitialized shared global variables (.shbss).  */
34 #undef  ASM_OUTPUT_SHARED_COMMON
35 #define ASM_OUTPUT_SHARED_COMMON(FILE, NAME, SIZE, ROUNDED) \
36 ( fputs(".comm ", (FILE)),                      \
37   assemble_name((FILE), (NAME)),                \
38    fprintf((FILE), ",%u,-3\n", (SIZE)))
39
40 /* Assembler pseudo-op for uninitialized shared local variables (.shbss).  */
41 #undef  SHARED_BSS_SECTION_ASM_OP
42 #define SHARED_BSS_SECTION_ASM_OP "\t.section .shbss, \"bs\""
43
44 /* seq2-sysv3.h used to define HAVE_ATEXIT, so I assume ptx1 needs this...  */
45 #define NEED_ATEXIT