1 # Test DEFINED in a linker script.
2 # By Ian Lance Taylor
, Cygnus Support.
7 if ![ld_assemble $as $srcdir
/$subdir
/defined.s tmpdir
/def.o
] {
12 if ![ld_simple_link $
ld tmpdir
/def
"-T $srcdir/$subdir/defined.t tmpdir/def.o"] {
15 if ![ld_nm $nm tmpdir
/def
] {
18 if {![info exists nm_output
(value1
)] \
19 ||
![info exists nm_output
(value2
)]} {
20 send_log
"bad output from nm\n"
21 verbose
"bad output from nm"
24 if {$nm_output
(value1
) != 1} {
25 send_log
"value1 == $nm_output(value1)\n"
26 verbose
"value1 == $nm_output(value1)"
29 if {$nm_output
(value2
) != 2} {
30 send_log
"value2 == $nm_output(value2)\n"
31 verbose
"value2 == $nm_output(value2)"