blob: 97769386ad68ae064927b5ebeeec69878bebd0fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#
# Expect script for LD Regression Tests
# Copyright (C) 1993 Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#
# $Id$
#
# Written by Jeffrey Wheat (cassidy@cygnus.com)
#
set ld $objdir/ld.new
# load the utility procedures
load_lib ld.exp
#
# ld_version -- extract and print the version number of ld compiler (GCC)
#
proc ld_version {} {
global ld
default_ld_version $ld
}
#
# ld_load
# load the program, for now, we just execute it
#
proc ld_load { target1 target2 } {
global exec_output
if ![file exists $target1] then {
unresolved "$target1 does not exist."
}
if ![file exists $target2] then {
unresolved "$target2 does not exist."
}
set status [catch "exec cmp $target1 $target2" exec_output]
verbose "### COMPARE $target1 $target2\n"
if ![string match "" $exec_output] then {
send_log "$exec_output\n"
verbose "$exec_output" 1
return 1
} else {
return 0
}
}
#
# ld_exit -- just a stub for ld
#
proc ld_exit {} {
}
#
# ld_start
# relink the linker
#
proc ld_start { ld target } {
default_ld_start $ld $target
}
|