aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-10-15 21:34:39 +1030
committerAlan Modra <amodra@gmail.com>2015-10-15 23:38:29 +1030
commit7b19bec22f266f2e1fab6528f166912328b999b6 (patch)
tree562cdfc507a6383b075a8069c1d860eee93ed9e0 /ld/testsuite/config
parente43fb83166ca5610e34cfba1dcf1216d0953aa8c (diff)
downloadgdb-7b19bec22f266f2e1fab6528f166912328b999b6.zip
gdb-7b19bec22f266f2e1fab6528f166912328b999b6.tar.gz
gdb-7b19bec22f266f2e1fab6528f166912328b999b6.tar.bz2
objcopy --extract-symbol testcase
Run the test for more than just ELF. Shows that objcopy --extract-symbol isn't working on PE, mips, mmix and some aout targets. * config/default.exp (size): New global. * ld-elf/extract-symbol-1.s, * ld-elf/extract-symbol-1.ld, * ld-elf/extract-symbol-1sec.d, * ld-elf/extract-symbol-1sym.d: Delete. * ld-scripts/script.exp (extract_symbol_test): New.
Diffstat (limited to 'ld/testsuite/config')
-rw-r--r--ld/testsuite/config/default.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index 5b3e29f..310a3b2 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -49,6 +49,10 @@ if ![info exists strip] then {
set strip [findfile $base_dir/../binutils/strip-new $base_dir/../binutils/strip-new [transform strip]]
}
+if ![info exists size] then {
+ set size [findfile $base_dir/../binutils/size]
+}
+
remote_exec host "mkdir -p tmpdir"
# Make symlinks from tmpdir/ld to the linker and assembler in the