Mon Sep 28 21:31:12 1998 Richard Henderson <rth@cygnus.com>
authorRichard Henderson <rth@redhat.com>
Tue, 29 Sep 1998 04:34:32 +0000 (04:34 +0000)
committerRichard Henderson <rth@redhat.com>
Tue, 29 Sep 1998 04:34:32 +0000 (04:34 +0000)
        * ld-elfvers/vers.exp: Run tests on alpha-linux.
        * ld-elfvers/*.sym, ld-elfvers/*.dsym: Adjust patters to match
        Alpha's use of st_other.

1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

        * ld-elfvers/vers.exp (vers16, vers16a): New tests.
        * ld-elfvers/{vers16.*, vers16a.*}: New files.

ld/testsuite/ld-elfvers/.Sanitize
ld/testsuite/ld-elfvers/vers16.c [new file with mode: 0644]
ld/testsuite/ld-elfvers/vers16.dsym [new file with mode: 0644]
ld/testsuite/ld-elfvers/vers16.map [new file with mode: 0644]
ld/testsuite/ld-elfvers/vers16a.c [new file with mode: 0644]
ld/testsuite/ld-elfvers/vers16a.dsym [new file with mode: 0644]
ld/testsuite/ld-elfvers/vers16a.ver [new file with mode: 0644]

index 16b16f311817896623998382ccfa77fc937f5ecf..2dc108ac93d70d4fdea25810e94ea148f4af5a3a 100644 (file)
@@ -34,6 +34,12 @@ vers15.c
 vers15.dsym
 vers15.sym
 vers15.ver
+vers16.c
+vers16.dsym
+vers16.map
+vers16a.c
+vers16a.dsym
+vers16a.ver
 vers2.c
 vers2.dsym
 vers2.map
diff --git a/ld/testsuite/ld-elfvers/vers16.c b/ld/testsuite/ld-elfvers/vers16.c
new file mode 100644 (file)
index 0000000..6668bc6
--- /dev/null
@@ -0,0 +1,10 @@
+int show_bar ()
+{
+  return 0;
+}
+extern int show_foo ();
+
+int main ()
+{
+  return show_foo ();
+}
diff --git a/ld/testsuite/ld-elfvers/vers16.dsym b/ld/testsuite/ld-elfvers/vers16.dsym
new file mode 100644 (file)
index 0000000..6fadf2d
--- /dev/null
@@ -0,0 +1,2 @@
+[0-9a-f]* g    DF (\.text|\*ABS\*)     [0-9a-f]*  Base        (0x[0-9a-f][0-9a-f] )?show_bar
+[0-9a-f]*      DF \*UND\*      [0-9a-f]*              (0x[0-9a-f][0-9a-f] )?show_foo
diff --git a/ld/testsuite/ld-elfvers/vers16.map b/ld/testsuite/ld-elfvers/vers16.map
new file mode 100644 (file)
index 0000000..766332f
--- /dev/null
@@ -0,0 +1,3 @@
+VERS_1.1 {
+  global: show_bar;
+};
diff --git a/ld/testsuite/ld-elfvers/vers16a.c b/ld/testsuite/ld-elfvers/vers16a.c
new file mode 100644 (file)
index 0000000..153b1fd
--- /dev/null
@@ -0,0 +1,8 @@
+int show_bar ()
+{
+  return 1;
+}
+int show_foo ()
+{
+  return show_bar ();
+}
diff --git a/ld/testsuite/ld-elfvers/vers16a.dsym b/ld/testsuite/ld-elfvers/vers16a.dsym
new file mode 100644 (file)
index 0000000..058df47
--- /dev/null
@@ -0,0 +1,3 @@
+[0-9a-f]* g    DO (\.text|\*ABS\*)     [0-9a-f]*  VERS_1\.1    VERS_1\.1
+[0-9a-f]* g    DF (\.text|\*ABS\*)     [0-9a-f]*  VERS_1\.1    (0x[0-9a-f][0-9a-f] )?show_bar
+[0-9a-f]* g    DF (\.text|\*ABS\*)     [0-9a-f]*  Base        (0x[0-9a-f][0-9a-f] )?show_foo
diff --git a/ld/testsuite/ld-elfvers/vers16a.ver b/ld/testsuite/ld-elfvers/vers16a.ver
new file mode 100644 (file)
index 0000000..bccf1df
--- /dev/null
@@ -0,0 +1,3 @@
+Version definitions:
+1 0x01 0x0601cfbf tmpdir/vers16a.so
+2 0x00 0x0a7927b1 VERS_1.1