aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-28 00:06:27 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-28 00:06:27 +0000
commit9de5523bb6f20557d5bc61697293be73233f8368 (patch)
treed6fd773ca0827570e3a1278e392084cfa8e43609 /ld/testsuite/config
parent8352254c2ee7cb1ffcf434550c177b06c54e4202 (diff)
downloadgdb-9de5523bb6f20557d5bc61697293be73233f8368.zip
gdb-9de5523bb6f20557d5bc61697293be73233f8368.tar.gz
gdb-9de5523bb6f20557d5bc61697293be73233f8368.tar.bz2
* ld.scripts: New directory.
* ld.scripts/defined.exp, ld.scripts/defined.s: New files. * ld.scripts/defined.t: New file. * lib/ld.exp (default_ld_simple_link): New function. (default_ld_assemble, default_ld_nm): New functions. * config/default.exp: Rename from unix-ld.exp. (ld_simple_link, ld_assemble, ld_nm): New functions.
Diffstat (limited to 'ld/testsuite/config')
-rw-r--r--ld/testsuite/config/.Sanitize2
-rw-r--r--ld/testsuite/config/default.exp (renamed from ld/testsuite/config/unix-ld.exp)24
2 files changed, 25 insertions, 1 deletions
diff --git a/ld/testsuite/config/.Sanitize b/ld/testsuite/config/.Sanitize
index 291f4a9..298cac8 100644
--- a/ld/testsuite/config/.Sanitize
+++ b/ld/testsuite/config/.Sanitize
@@ -23,7 +23,7 @@ Do-first:
Things-to-keep:
-unix-ld.exp
+default.exp
Things-to-lose:
diff --git a/ld/testsuite/config/unix-ld.exp b/ld/testsuite/config/default.exp
index 99ffb53..bdf3b08 100644
--- a/ld/testsuite/config/unix-ld.exp
+++ b/ld/testsuite/config/default.exp
@@ -93,6 +93,14 @@ proc ld_link { ld target objects } {
}
#
+# ld_simple_link
+# link a program using ld, without including any libraries
+#
+proc ld_simple_link { ld target objects } {
+ default_ld_simple_link $ld $target $objects
+}
+
+#
# ld_compile
# compile an object using $cc
#
@@ -101,6 +109,22 @@ proc ld_compile { cc source object } {
}
#
+# ld_assemble
+# assemble a file
+#
+proc ld_assemble { as source object } {
+ default_ld_assemble $as $source $object
+}
+
+#
+# ld_nm
+# run nm on a file
+#
+proc ld_nm { nm object } {
+ default_ld_nm $nm $object
+}
+
+#
# ld_exec
# execute ithe target
#