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