aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-07-10 14:51:55 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-07-10 14:51:55 +0000
commit70840594337f8310011d772d89783be8bd07f342 (patch)
treedf76c0ada520303b741abef3f24d14d471def865 /ld/testsuite/ld-elfvers/vers.exp
parent5184c2ae47954b52118a7ea757407834b59038cf (diff)
downloadgdb-70840594337f8310011d772d89783be8bd07f342.zip
gdb-70840594337f8310011d772d89783be8bd07f342.tar.gz
gdb-70840594337f8310011d772d89783be8bd07f342.tar.bz2
2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
* ld-elfvers/vers.exp: Add tests for --defsym. * ld-elfvers/vers32.map: Likewise. * ld-elfvers/vers32a.c: Likewise. * ld-elfvers/vers32a.dsym: Likewise. * ld-elfvers/vers32a.ver: Likewise. * ld-elfvers/vers32b.c: Likewise. * ld-elfvers/vers32b.dsym: Likewise. * ld-elfvers/vers32b.ver: Likewise. * ld-elfvers/vers32c.dsym: Likewise. * ld-elfvers/vers32c.ver: Likewise. * ld-elfvers/vers32d.ver: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers.exp')
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 198a7f6..f163c21 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -991,3 +991,9 @@ build_vers_lib_pic "vers30" vers30.c vers30 "" vers30.map vers30.ver vers30.dsym
# Test #31 -- quoted strings in version sections.
build_vers_lib_pic "vers31" vers31.c vers31 "" vers31.map vers31.ver vers31.dsym ""
+
+# Test #32 -- linker --defsym
+build_vers_lib_pic "vers32a" vers32a.c vers32a "" vers32.map vers32a.ver vers32a.dsym ""
+build_vers_lib_pic_flags "vers32b" vers32b.c vers32b "vers32a.so" vers32.map vers32b.ver vers32b.dsym "" "--defsym foo=0"
+build_vers_lib_pic_flags "vers32c" vers32a.c vers32c "vers32a.so" vers32.map vers32c.ver vers32c.dsym "" "--defsym foo=0"
+build_vers_lib_pic_flags "vers32d" vers32a.c vers32d "" vers32.map vers32d.ver vers32c.dsym "" "--defsym foo=0"