OSDN Git Service

See the ChangeLog on the branch for more details.
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / aix3newas.h
1 /* Definitions of target machine for GNU compiler,
2    for IBM RS/6000 POWER running AIX version 3.x with the fixed assembler.
3    Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc.
4    Contributed by Jason Merrill (jason@cygnus.com).
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, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.  */
22
23
24 #include "rs6000/rs6000.h"
25 #include "rs6000/aix.h"
26
27 /* Tell the assembler to assume that all undefined names are external.  */
28
29 #undef ASM_SPEC
30 #define ASM_SPEC "-u %(asm_cpu)"
31
32 #undef ASM_DEFAULT_SPEC
33 #define ASM_DEFAULT_SPEC "-mpwr"
34
35 /* Define the options for the binder: Start text at 512, align all segments
36    to 512 bytes, and warn if there is text relocation.
37
38    The -bhalt:4 option supposedly changes the level at which ld will abort,
39    but it also suppresses warnings about multiply defined symbols and is
40    used by the AIX cc command.  So we use it here.
41
42    -bnodelcsect undoes a poor choice of default relating to multiply-defined
43    csects.  See AIX documentation for more information about this.
44
45    -bM:SRE tells the linker that the output file is Shared REusable.  Note
46    that to actually build a shared library you will also need to specify an
47    export list with the -Wl,-bE option.
48
49    If -mcpu=common, export the architecture dependent multiply/divide routines
50    as per README.RS6000.  */
51
52 #undef  LINK_SPEC
53 #ifndef CROSS_COMPILE
54 #define LINK_SPEC "-T512 -H512 %{!r:-btextro} -bhalt:4 -bnodelcsect\
55    %{static:-bnso -bI:/lib/syscalls.exp} \
56    %{mcpu=common: milli.exp%s} \
57    %{!shared:%{g*:-bexport:/usr/lib/libg.exp}} %{shared:-bM:SRE}"
58 #else
59 #define LINK_SPEC "-T512 -H512 %{!r:-btextro} -bhalt:4 -bnodelcsect\
60    %{static:-bnso} \
61    %{mcpu=common: milli.exp%s} \
62    %{shared:-bM:SRE}"
63 #endif