Print this page
10366 ld(1) should support GNU-style linker sets
10367 ld(1) tests should be a real test suite
10368 want an ld(1) regression test for i386 LD tls transition (10267)
*** 22,38 ****
# not change the default search path so we want to make sure that we use a
# different ISA (e.g. 32-bit vs 64-bit) from the binary we're generating.
#
unalias -a
sh_path=
sh_lib="lib"
sh_lib64="$sh_lib/64"
sh_soname="libld.so.4"
! sh_cc="cc"
sh_cflags="-m32"
! sh_file="link.c"
sh_arg0=$(basename $0)
function fatal
{
local msg="$*"
--- 22,43 ----
# not change the default search path so we want to make sure that we use a
# different ISA (e.g. 32-bit vs 64-bit) from the binary we're generating.
#
unalias -a
+ if [[ -z $ELF_TESTS ]]; then
+ print -u2 "Don't know where the test data is rooted";
+ exit 1;
+ fi
+
sh_path=
sh_lib="lib"
sh_lib64="$sh_lib/64"
sh_soname="libld.so.4"
! sh_cc="gcc"
sh_cflags="-m32"
! sh_file="${ELF_TESTS}/tests/assert-deflib/link.c"
sh_arg0=$(basename $0)
function fatal
{
local msg="$*"
*** 71,82 ****
else
fatal $4
fi
}
! sh_path=$1
! [[ -z "$1" ]] && fatal "<proto root>"
validate
run "-Wl,-zassert-deflib" 0 \
"Testing basic compilation succeeds with warnings..." \
"failed to compile with warnings"
--- 76,86 ----
else
fatal $4
fi
}
! sh_path=${1:-/}
validate
run "-Wl,-zassert-deflib" 0 \
"Testing basic compilation succeeds with warnings..." \
"failed to compile with warnings"