+2018-11-01 Thomas Preud'homme <thomas.preudhomme@linaro.org>
+
+ * testsuite/config/default.exp: Define LD, LDFLAGS and
+ ld_elf_shared_opt.
+ * testsuite/lib/binutils-common.exp (check_shared_lib_support): Moved
+ from ld-lib.exp.
+ (run_dump_test): Set ld to $LD.
+
2018-10-18 Nick Clifton <nickc@redhat.com>
* doc/binutils.texi (readelf): Document alternatives to the
set ASFLAGS ""
}
+if ![info exists LD] then {
+ set LD [findfile $base_dir/../ld/ld-new $base_dir/../ld/ld-new [transform ld]]
+}
+if ![info exists LDFLAGS] then {
+ set LDFLAGS ""
+}
+set ld_elf_shared_opt "-z norelro"
+
if ![info exists NM] then {
set NM [findfile $base_dir/nm-new $base_dir/nm-new [transform nm]]
}
return 0;
}
+# Returns true if -shared is supported on the target
+
+proc check_shared_lib_support { } {
+ global shared_available_saved
+ global ld
+
+ if {![info exists shared_available_saved]} {
+ set ld_output [remote_exec host $ld "-shared"]
+ if { [ string first "not supported" $ld_output ] >= 0 } {
+ set shared_available_saved 0
+ } else {
+ set shared_available_saved 1
+ }
+ }
+ return $shared_available_saved
+}
+
# Compare two files line-by-line. FILE_1 is the actual output and FILE_2
# is the expected output. Ignore blank lines in either file.
#
catch "exec rm -f $objfile" exec_output
set ld_extra_opt ""
+ global ld
+ set ld "$LD"
if { [is_elf_format] && [check_shared_lib_support] } {
set ld_extra_opt "$ld_elf_shared_opt"
}
+2018-11-01 Thomas Preud'homme <thomas.preudhomme@linaro.org>
+
+ * testsuite/config/default.exp: Define LD, LDFLAGS and
+ ld_elf_shared_opt.
+
2018-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
* testsuite/gas/arm/armv8-a+rdma-warning.d: Remove objdump execution.
set ASFLAGS ""
}
+if ![info exists LD] then {
+ set LD [findfile $base_dir/../../ld/ld-new $base_dir/../../ld/ld-new [transform ld]]
+}
+if ![info exists LDFLAGS] then {
+ set LDFLAGS ""
+}
+set ld_elf_shared_opt "-z norelro"
+
if ![info exists OBJDUMP] then {
set OBJDUMP [findfile $base_dir/../../binutils/objdump \
$base_dir/../../binutils/objdump \
+2018-11-01 Thomas Preud'homme <thomas.preudhomme@linaro.org>
+
+ * testsuite/lib/ld-lib.exp (check_shared_lib_support): Moved to
+ binutils-common.exp.
+
2018-10-29 Alan Modra <amodra@gmail.com>
* ldlang.c (load_symbols): When -t, print file names for script
return $gc_sections_available_saved
}
-# Returns true if -shared is supported on the target
-
-proc check_shared_lib_support { } {
- global shared_available_saved
- global ld
-
- if {![info exists shared_available_saved]} {
- set ld_output [remote_exec host $ld "-shared"]
- if { [ string first "not supported" $ld_output ] >= 0 } {
- set shared_available_saved 0
- } else {
- set shared_available_saved 1
- }
- }
- return $shared_available_saved
-}
-
# Return true if target uses genelf.em (assuming it is ELF).
proc is_generic_elf { } {
if { [istarget "d30v-*-*"]