aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-05-03 16:51:05 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-05-03 16:51:05 +0000
commit95aa61ce02e1cec65b0b3fd2982aa73f67e5d601 (patch)
treeae2393aaf9cbfd88e16de7cf2f4c63545ef873d4
parent711ef82f1d0a4fb40bcec63df99e9beddd125659 (diff)
downloadgdb-95aa61ce02e1cec65b0b3fd2982aa73f67e5d601.zip
gdb-95aa61ce02e1cec65b0b3fd2982aa73f67e5d601.tar.gz
gdb-95aa61ce02e1cec65b0b3fd2982aa73f67e5d601.tar.bz2
2003-05-03 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp: Add vers27a, vers27b, vers27c1 and vers27c2 to test versioned definition vs. hidden definition in different files. * ld-elfvers/vers27a.c: New file. * ld-elfvers/vers27a.dsym: Likewise. * ld-elfvers/vers27a.map: Likewise. * ld-elfvers/vers27a.ver: Likewise. * ld-elfvers/vers27b.c: Likewise. * ld-elfvers/vers27b.dsym: New empty file. * ld-elfvers/vers27b.ver: Likwise. * ld-elfvers/vers27c.c: Likwise. * ld-elfvers/vers27c.dsym: Likwise. * ld-elfvers/vers27c.ver: Likwise.
-rw-r--r--ld/testsuite/ChangeLog18
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp6
-rw-r--r--ld/testsuite/ld-elfvers/vers27a.c1
-rw-r--r--ld/testsuite/ld-elfvers/vers27a.dsym2
-rw-r--r--ld/testsuite/ld-elfvers/vers27a.map5
-rw-r--r--ld/testsuite/ld-elfvers/vers27a.ver4
-rw-r--r--ld/testsuite/ld-elfvers/vers27b.c2
-rw-r--r--ld/testsuite/ld-elfvers/vers27b.dsym0
-rw-r--r--ld/testsuite/ld-elfvers/vers27b.ver0
-rw-r--r--ld/testsuite/ld-elfvers/vers27c.c0
-rw-r--r--ld/testsuite/ld-elfvers/vers27c.dsym0
-rw-r--r--ld/testsuite/ld-elfvers/vers27c.ver0
12 files changed, 38 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 4f0b901..0e47ad2 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,21 @@
+2003-05-03 H.J. Lu <hjl@gnu.org>
+
+ * ld-elfvers/vers.exp: Add vers27a, vers27b, vers27c1 and
+ vers27c2 to test versioned definition vs. hidden definition in
+ different files.
+
+ * ld-elfvers/vers27a.c: New file.
+ * ld-elfvers/vers27a.dsym: Likewise.
+ * ld-elfvers/vers27a.map: Likewise.
+ * ld-elfvers/vers27a.ver: Likewise.
+ * ld-elfvers/vers27b.c: Likewise.
+
+ * ld-elfvers/vers27b.dsym: New empty file.
+ * ld-elfvers/vers27b.ver: Likwise.
+ * ld-elfvers/vers27c.c: Likwise.
+ * ld-elfvers/vers27c.dsym: Likwise.
+ * ld-elfvers/vers27c.ver: Likwise.
+
2003-05-02 Nick Clifton <nickc@redhat.com>
* ld-xstormy16: New directory.
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 9835dc6..a26927e 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -919,3 +919,9 @@ if [istarget x86_64-*-linux*] {
} else {
build_vers_lib_no_pic "vers26b3" vers26b.c vers26b3 "vers26a.so vers26b1.so vers26a.o" "" vers26b.ver vers26b.dsym ""
}
+
+# Test versioned definition vs. hidden definition in different files.
+build_vers_lib_no_pic "vers27a" vers27a.c vers27a "" vers27a.map vers27a.ver vers27a.dsym ""
+build_vers_lib_no_pic "vers27b" vers27b.c vers27b "" "" vers27b.ver vers27b.dsym ""
+build_vers_lib_no_pic "vers27c1" vers27c.c vers27c1 "vers27b.o vers27a.so" "" vers27c.ver vers27c.dsym ""
+build_vers_lib_no_pic "vers27c2" vers27c.c vers27c2 "vers27a.so vers27b.o" "" vers27c.ver vers27c.dsym ""
diff --git a/ld/testsuite/ld-elfvers/vers27a.c b/ld/testsuite/ld-elfvers/vers27a.c
new file mode 100644
index 0000000..f5be371
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27a.c
@@ -0,0 +1 @@
+void foo () {}
diff --git a/ld/testsuite/ld-elfvers/vers27a.dsym b/ld/testsuite/ld-elfvers/vers27a.dsym
new file mode 100644
index 0000000..fcf6384
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27a.dsym
@@ -0,0 +1,2 @@
+[0]*[ ]+g[ ]+DO[ ]+\*ABS\*[ ]+[0]*[ ]+VERS.0[ ]+VERS.0
+[0-9a-f]*[ ]+g[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+VERS.0[ ]+(0x[0-9a-f]*|)[ ]*foo
diff --git a/ld/testsuite/ld-elfvers/vers27a.map b/ld/testsuite/ld-elfvers/vers27a.map
new file mode 100644
index 0000000..31bfc76
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27a.map
@@ -0,0 +1,5 @@
+VERS.0 {
+ global:
+ foo;
+ local: *;
+};
diff --git a/ld/testsuite/ld-elfvers/vers27a.ver b/ld/testsuite/ld-elfvers/vers27a.ver
new file mode 100644
index 0000000..06d85e6
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27a.ver
@@ -0,0 +1,4 @@
+Version definitions:
+1 0x01 0x065b090f vers27a.so
+2 0x00 0x05aa7610 VERS.0
+
diff --git a/ld/testsuite/ld-elfvers/vers27b.c b/ld/testsuite/ld-elfvers/vers27b.c
new file mode 100644
index 0000000..7b164c4
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27b.c
@@ -0,0 +1,2 @@
+void foo () {}
+asm (".hidden foo");
diff --git a/ld/testsuite/ld-elfvers/vers27b.dsym b/ld/testsuite/ld-elfvers/vers27b.dsym
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27b.dsym
diff --git a/ld/testsuite/ld-elfvers/vers27b.ver b/ld/testsuite/ld-elfvers/vers27b.ver
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27b.ver
diff --git a/ld/testsuite/ld-elfvers/vers27c.c b/ld/testsuite/ld-elfvers/vers27c.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27c.c
diff --git a/ld/testsuite/ld-elfvers/vers27c.dsym b/ld/testsuite/ld-elfvers/vers27c.dsym
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27c.dsym
diff --git a/ld/testsuite/ld-elfvers/vers27c.ver b/ld/testsuite/ld-elfvers/vers27c.ver
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ld/testsuite/ld-elfvers/vers27c.ver