Add copyright notices
[binutils-gdb.git] / gas / testsuite / config / default.exp
1 # Copyright 2012
2 # Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17
18 load_lib gas-defs.exp
19
20 global AS
21 if ![info exists AS] then {
22 set AS [findfile $base_dir/../as-new "../as-new" [transform as]]
23 }
24
25 global ASFLAGS
26 if ![info exists ASFLAGS] then {
27 set ASFLAGS ""
28 }
29
30 if ![info exists OBJDUMP] then {
31 set OBJDUMP [findfile $base_dir/../../binutils/objdump \
32 $base_dir/../../binutils/objdump \
33 [transform objdump]]
34 }
35
36 if ![info exists OBJDUMPFLAGS] then {
37 set OBJDUMPFLAGS {}
38 }
39
40 if ![info exists NM] then {
41 set NM [findfile $base_dir/../../binutils/nm-new \
42 $base_dir/../../binutils/nm-new \
43 [transform nm]]
44 }
45
46 if ![info exists NMFLAGS] then {
47 set NMFLAGS {}
48 }
49
50 if ![info exists OBJCOPY] then {
51 set OBJCOPY [findfile $base_dir/../../binutils/objcopy]
52 }
53
54 if ![info exists OBJCOPYFLAGS] then {
55 set OBJCOPYFLAGS {}
56 }
57
58 if ![info exists READELF] then {
59 set READELF [findfile $base_dir/../../binutils/readelf]
60 }
61
62 if ![info exists READELFFLAGS] then {
63 set READELFFLAGS {}
64 }
65
66 if ![info exists ADDR2LINE] then {
67 set ADDR2LINE [findfile $base_dir/../../binutils/addr2line]
68 }
69
70 if ![info exists ADDR2LINEFLAGS] then {
71 set ADDR2LINEFLAGS {}
72 }
73
74 gas_init