* pa/pa-hpux10.h (MD_EXEC_PREFIX): Define appropriately for hpux10.
[official-gcc.git] / gcc / config / pa / pa-hpux10.h
blob1c57d5ee6ea70cc1a2b3386aae7917b02ff9feb3
1 /* Definitions of target machine for GNU compiler, for HP PA-RISC 1.1
2 Copyright (C) 1995, 1996 Free Software Foundation, Inc.
3 Contributed by Tim Moore (moore@defmacro.cs.utah.edu)
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* We can debug dynamically linked executables on hpux9; we also want
23 derefercing of a NULL pointer to cause a SEGV. */
24 #undef LINK_SPEC
25 #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1)
26 #define LINK_SPEC \
27 "%{!mpa-risc-1-0:%{!shared:-L/lib/pa1.1 -L/usr/lib/pa1.1 }} -z %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}"
28 #else
29 #define LINK_SPEC \
30 "-z %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}"
31 #endif
33 /* The hpux10 assembler requires a .LEVEL pseudo-op at the start of
34 the assembly file. */
35 #undef ASM_FILE_START
36 #define ASM_FILE_START(FILE) \
37 do { \
38 if (TARGET_SNAKE) \
39 fputs("\t.LEVEL 1.1\n", FILE); \
40 else \
41 fputs("\t.LEVEL 1.0\n", FILE); \
42 fputs ("\t.SPACE $PRIVATE$\n\
43 \t.SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31\n\
44 \t.SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82\n\
45 \t.SPACE $TEXT$\n\
46 \t.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44\n\
47 \t.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY\n\
48 \t.IMPORT $global$,DATA\n\
49 \t.IMPORT $$dyncall,MILLICODE\n", FILE);\
50 if (profile_flag)\
51 fprintf (FILE, "\t.IMPORT _mcount, CODE\n");\
52 if (write_symbols != NO_DEBUG) \
53 output_file_directive ((FILE), main_input_filename); \
54 } while (0)
56 /* Under hpux10, the normal location of the `ld' and `as' programs is the
57 /usr/ccs/bin directory. */
59 #ifndef CROSS_COMPILE
60 #undef MD_EXEC_PREFIX
61 #define MD_EXEC_PREFIX "/usr/ccs/bin/"
62 #endif
64 /* Under hpux10, the normal location of the various *crt*.o files is the
65 /usr/ccs/lib directory. */
67 #ifndef CROSS_COMPILE
68 #undef MD_STARTFILE_PREFIX
69 #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
70 #endif