Initial revision
[official-gcc.git] / gcc / config / i386 / svr3dbx.h
blobc394747ab9a2864bf542e6c4c636dfddf4b51a29
1 /* Definitions for Intel 386 running system V, using dbx-in-coff encapsulation.
2 Copyright (C) 1992, 1995 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC 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.
11 GNU CC 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.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #include "i386/svr3gas.h"
23 /* We do not want to output SDB debugging information. */
25 #undef SDB_DEBUGGING_INFO
27 /* We want to output DBX debugging information. */
29 #define DBX_DEBUGGING_INFO
31 /* Compensate for botch in dbxout_init/dbxout_source_file which
32 unconditionally drops the first character from ltext_label_name */
34 #undef ASM_GENERATE_INTERNAL_LABEL
35 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
36 sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER))
38 /* With the current gas, .align N aligns to an N-byte boundary.
39 This is done to be compatible with the system assembler.
40 You must specify -DOTHER_ALIGN when building gas-1.38.1. */
42 #undef ASM_OUTPUT_ALIGN
43 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
44 if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
46 /* Align labels, etc. at 4-byte boundaries.
47 For the 486, align to 16-byte boundary for sake of cache. */
49 #undef ASM_OUTPUT_ALIGN_CODE
50 #define ASM_OUTPUT_ALIGN_CODE(FILE) \
51 fprintf ((FILE), "\t.align %d,0x90\n", \
52 1 << i386_align_jumps)
54 /* Align start of loop at 4-byte boundary. */
56 #undef ASM_OUTPUT_LOOP_ALIGN
57 #define ASM_OUTPUT_LOOP_ALIGN(FILE) \
58 fprintf ((FILE), "\t.align %d,0x90\n", 1 << i386_align_loops);
61 /* Additional overrides needed for dbx-in-coff gas, mostly taken from pbb.h */
63 /* Although the gas we use can create .ctor and .dtor sections from N_SETT
64 stabs, it does not support section directives, so we need to have the loader
65 define the lists.
67 #define CTOR_LISTS_DEFINED_EXTERNALLY
69 /* Use crt1.o as a startup file and crtn.o as a closing file. */
71 * The loader directive file svr3.ifile defines how to merge the constructor
72 * sections into the data section. Also, since gas only puts out those
73 * sections in response to N_SETT stabs, and does not (yet) have a
74 * ".sections" directive, svr3.ifile also defines the list symbols
75 * __DTOR_LIST__ and __CTOR_LIST__.
77 #undef STARTFILE_SPEC
78 #define STARTFILE_SPEC \
79 "%{!r:%{!z:svr3.ifile%s}%{z:svr3z.ifile%s}}\
80 %{pg:gcrt1.o%s}%{!pg:%{posix:%{p:mcrtp1.o%s}%{!p:crtp1.o%s}}%{!posix:%{p:mcrt1.o%s}%{!p:crt1.o%s}}} \
81 %{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp}"
83 #define ENDFILE_SPEC "crtn.o%s"
85 #undef LIB_SPEC
86 #define LIB_SPEC "%{posix:-lcposix} %{shlib:-lc_s} -lc -lg"