]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/contrib/gcc/config/i386/svr3dbx.h
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / 6 / contrib / gcc / config / i386 / svr3dbx.h
1 /* Definitions for Intel 386 running system V, using dbx-in-coff encapsulation.
2    Copyright (C) 1992, 1995, 2002 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* We do not want to output SDB debugging information.  */
22
23 #undef SDB_DEBUGGING_INFO
24
25 /* We want to output DBX debugging information.  */
26
27 #define DBX_DEBUGGING_INFO 1
28
29 /* Compensate for botch in dbxout_init/dbxout_source_file which
30    unconditionally drops the first character from ltext_label_name */
31
32 #undef ASM_GENERATE_INTERNAL_LABEL
33 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)  \
34     sprintf ((BUF), "*.%s%ld", (PREFIX), (long)(NUMBER))
35
36 /* With the current gas, .align N aligns to an N-byte boundary.
37    This is done to be compatible with the system assembler.
38    You must specify -DOTHER_ALIGN when building gas-1.38.1.  */
39
40 #undef ASM_OUTPUT_ALIGN
41 #define ASM_OUTPUT_ALIGN(FILE,LOG)      \
42      if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
43
44 /* Align labels, etc. at 4-byte boundaries.
45    For the 486, align to 16-byte boundary for sake of cache.  */
46
47 #undef LABEL_ALIGN_AFTER_BARRIER
48 #define LABEL_ALIGN_AFTER_BARRIER(LABEL) (i386_align_jumps)
49
50 /* Align start of loop at 4-byte boundary.  */
51
52 #undef LOOP_ALIGN
53 #define LOOP_ALIGN(LABEL) (i386_align_loops)
54
55
56 /* Additional overrides needed for dbx-in-coff gas, mostly taken from pbb.h */
57
58 /* Although the gas we use can create .ctor and .dtor sections from N_SETT
59    stabs, it does not support section directives, so we need to have the loader
60    define the lists.
61  */
62 #define CTOR_LISTS_DEFINED_EXTERNALLY
63
64 /* Use crt1.o as a startup file and crtn.o as a closing file.  */
65 /*
66  * The loader directive file svr3.ifile defines how to merge the constructor 
67  * sections into the data section.  Also, since gas only puts out those 
68  * sections in response to N_SETT stabs, and does not (yet) have a 
69  * ".sections" directive, svr3.ifile also defines the list symbols 
70  * __DTOR_LIST__ and __CTOR_LIST__.
71  */
72 #undef STARTFILE_SPEC
73 #define STARTFILE_SPEC \
74   "%{!r:%{!z:svr3.ifile%s}%{z:svr3z.ifile%s}}\
75    %{pg:gcrt1.o%s}%{!pg:%{posix:%{p:mcrtp1.o%s}%{!p:crtp1.o%s}}%{!posix:%{p:mcrt1.o%s}%{!p:crt1.o%s}}} \
76    %{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp}"
77   
78 #define ENDFILE_SPEC "crtn.o%s"
79   
80 #undef LIB_SPEC
81 #define LIB_SPEC "%{posix:-lcposix} %{shlib:-lc_s} -lc -lg"