1 # Copyright
(C
) 2012-2019 Free Software Foundation
, Inc.
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.
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.
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.
20 if ![info exists AS
] then {
21 set AS
[findfile $base_dir
/..
/as
-new
"../as-new" [transform as]]
25 if ![info exists ASFLAGS
] then {
29 if ![info exists LD] then {
30 set LD [findfile $base_dir
/..
/..
/ld/ld-new $base_dir
/..
/..
/ld/ld-new
[transform
ld]]
32 if ![info exists LDFLAGS
] then {
35 set ld_elf_shared_opt
"-z norelro"
37 if ![info exists OBJDUMP
] then {
38 set OBJDUMP
[findfile $base_dir
/..
/..
/binutils
/objdump \
39 $base_dir
/..
/..
/binutils
/objdump \
43 if ![info exists OBJDUMPFLAGS
] then {
47 if ![info exists NM
] then {
48 set NM
[findfile $base_dir
/..
/..
/binutils
/nm
-new \
49 $base_dir
/..
/..
/binutils
/nm
-new \
53 if ![info exists NMFLAGS
] then {
57 if ![info exists OBJCOPY
] then {
58 set OBJCOPY
[findfile $base_dir
/..
/..
/binutils
/objcopy
]
61 if ![info exists OBJCOPYFLAGS
] then {
65 if ![info exists READELF
] then {
66 set READELF
[findfile $base_dir
/..
/..
/binutils
/readelf
]
69 if ![info exists READELFFLAGS
] then {
73 if ![info exists ADDR2LINE
] then {
74 set ADDR2LINE
[findfile $base_dir
/..
/..
/binutils
/addr2line
]
77 if ![info exists ADDR2LINEFLAGS
] then {
81 if ![file isdirectory tmpdir
] {catch
"exec mkdir tmpdir" status}