(tc_gen_reloc): Use bfd_get_reloc_code_name in error message.
[binutils-gdb.git] / gas / make-gas.com
1 $! Set the def dir to proper place for use in batch. Works for interactive to.
2 $flnm = f$enviroment("PROCEDURE") ! get current procedure name
3 $set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
4 $!
5 $! Command file to build a GNU assembler on VMS
6 $!
7 $! If you are using a version of GCC that supports global constants
8 $! you should remove the define="const=" from the gcc lines.
9 $!
10 $! Caution: Versions 1.38.1 and earlier had a bug in the handling of
11 $! some static constants. If you are using such a version of the
12 $! assembler, and you wish to compile without the "const=" hack,
13 $! you should first build this version *with* the "const="
14 $! definition, and then use that assembler to rebuild it without the
15 $! "const=" definition. Failure to do this will result in an assembler
16 $! that will mung floating point constants.
17 $!
18 $! Note: The version of gas shipped on the GCC VMS tapes has been patched
19 $! to fix the above mentioned bug.
20 $!
21 $ write sys$output "If this assembler is going to be used with GCC 1.n, you"
22 $ write sys$Output "need to modify the driver to supply the -1 switch to gas."
23 $ write sys$output "This is required because of a small change in how global"
24 $ write sys$Output "constant variables are handled. Failure to include this"
25 $ write sys$output "will result in linker warning messages about mismatched
26 $ write sys$output "psect attributes."
27 $!
28 $ C_DEFS :="""VMS"""
29 $! C_DEFS :="""VMS""","""const="""
30 $ C_INCLUDES :=/include=([],[.config],[-.include],[-.include.aout])
31 $ C_FLAGS := /debug 'c_includes'
32 $!
33 $!
34 $ if "''p1'" .eqs. "LINK" then goto Link
35 $!
36 $! This helps gcc 1.nn find the aout/* files.
37 $!
38 $ aout_dev = f$parse(flnm,,,"DEVICE")
39 $ tmp = aout_dev - ":"
40 $if f$trnlnm(tmp).nes."" then aout_dev = f$trnlnm(tmp)
41 $ aout_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
42 - "GAS]" + "INCLUDE.AOUT.]" - "]["
43 $assign 'aout_dir' aout/tran=conc
44 $ opcode_dir = aout_dev+f$parse(flnm,,,"DIRECTORY")' -
45 - "GAS]" + "INCLUDE.OPCODE.]" - "]["
46 $assign 'opcode_dir' opcode/tran=conc
47 $!
48 $ gcc 'c_flags'/define=('C_DEFS') targ-cpu.c
49 $ gcc 'c_flags'/define=('C_DEFS') obj-format.c
50 $ gcc 'c_flags'/define=('C_DEFS') atof-targ.c
51 $ gcc 'c_flags'/define=('C_DEFS') app.c
52 $ gcc 'c_flags'/define=('C_DEFS') as.c
53 $ gcc 'c_flags'/define=('C_DEFS') atof-generic.c
54 $ gcc 'c_flags'/define=('C_DEFS') bignum-copy.c
55 $ gcc 'c_flags'/define=('C_DEFS') cond.c
56 $ gcc 'c_flags'/define=('C_DEFS') expr.c
57 $ gcc 'c_flags'/define=('C_DEFS') flonum-konst.c
58 $ gcc 'c_flags'/define=('C_DEFS') flonum-copy.c
59 $ gcc 'c_flags'/define=('C_DEFS') flonum-mult.c
60 $ gcc 'c_flags'/define=('C_DEFS') frags.c
61 $ gcc 'c_flags'/define=('C_DEFS') hash.c
62 $ gcc 'c_flags'/define=('C_DEFS') hex-value.c
63 $ gcc 'c_flags'/define=('C_DEFS') input-file.c
64 $ gcc 'c_flags'/define=('C_DEFS') input-scrub.c
65 $ gcc 'c_flags'/define=('C_DEFS') literal.c
66 $ gcc 'c_flags'/define=('C_DEFS') messages.c
67 $ gcc 'c_flags'/define=('C_DEFS') output-file.c
68 $ gcc 'c_flags'/define=('C_DEFS') read.c
69 $ gcc 'c_flags'/define=('C_DEFS') subsegs.c
70 $ gcc 'c_flags'/define=('C_DEFS') symbols.c
71 $ gcc 'c_flags'/define=('C_DEFS') write.c
72 $ gcc 'c_flags'/define=('C_DEFS') listing.c
73 $ gcc 'c_flags'/define=('C_DEFS') ecoff.c
74 $ gcc 'c_flags'/define=('C_DEFS') stabs.c
75 $ gcc 'c_flags'/define=('C_DEFS') xmalloc.c
76 $ gcc 'c_flags'/define=('C_DEFS')/object=[]obstack.obj [-.libiberty]obstack.c
77 $ gcc 'c_flags'/define=('C_DEFS')/object=[]strdup.obj [-.libiberty]strdup.c
78 $ gcc 'c_flags'/define=('C_DEFS')/object=[]strncasecmp.obj [-.libiberty]strncasecmp.c
79 $ gcc 'c_flags'/define=('C_DEFS')/object=[]getruntime.obj [-.libiberty]getruntime.c
80 $link:
81 $ link/nomap/exec=gcc-as version.opt/opt+sys$input:/opt
82 !
83 ! Linker options file for GNU assembler
84 !
85 targ-cpu.obj,-
86 obj-format.obj,-
87 atof-targ.obj,-
88 app.obj,-
89 as.obj,-
90 atof-generic.obj,-
91 bignum-copy.obj,-
92 cond.obj,-
93 expr.obj,-
94 flonum-konst.obj,-
95 flonum-copy.obj,-
96 flonum-mult.obj,-
97 frags.obj,-
98 hash.obj,-
99 hex-value.obj,-
100 input-file.obj,-
101 input-scrub.obj,-
102 literal.obj,-
103 messages.obj,-
104 output-file.obj,-
105 read.obj,-
106 subsegs.obj,-
107 symbols.obj,-
108 write.obj,-
109 listing.obj,-
110 ecoff.obj,-
111 stabs.obj,-
112 xmalloc.obj,-
113 obstack.obj,-
114 strdup.obj,-
115 strncasecmp.obj,-
116 getruntime.obj,-
117 gnu_cc:[000000]gcclib/lib,sys$share:vaxcrtl/lib
118 ! Tell linker exactly what psect attributes we want -- match VAXCRTL.
119 psect_attr=ENVIRON,long,pic,ovr,rel,gbl,noshr,noexe,rd,wrt