* ld-elfvers/vers.exp: Add vers22.
* ld-elfvers/vers22.c: New.
* ld-elfvers/vers22.dsym: New.
* ld-elfvers/vers22.map: New.
* ld-elfvers/vers22.ver: New.
* ld-elfvers/vers22a.c: New.
* ld-elfvers/vers22a.dsym: New.
* ld-elfvers/vers22a.sym: New.
* ld-elfvers/vers22a.ver: New.
* ld-elfvers/vers22b.c: New.
* ld-elfvers/vers22b.dsym: New.
* ld-elfvers/vers22b.ver: New.
+2002-08-08 H.J. Lu <hjl@gnu.org>
+
+ * ld-elfvers/vers.exp: Add vers22.
+
+ * ld-elfvers/vers22.c: New.
+ * ld-elfvers/vers22.dsym: New.
+ * ld-elfvers/vers22.map: New.
+ * ld-elfvers/vers22.ver: New.
+ * ld-elfvers/vers22a.c: New.
+ * ld-elfvers/vers22a.dsym: New.
+ * ld-elfvers/vers22a.sym: New.
+ * ld-elfvers/vers22a.ver: New.
+ * ld-elfvers/vers22b.c: New.
+ * ld-elfvers/vers22b.dsym: New.
+ * ld-elfvers/vers22b.ver: New.
+
2002-08-07 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp: Add --no-undefined-version.
# Test .symver override.
build_vers_lib "vers21" vers21.c vers21 "" vers21.map vers21.ver vers21.dsym vers21.sym
+
+# Test moving default definition from one DSO to another.
+build_vers_lib "vers22a" vers22a.c vers22a "" vers22.map vers22a.ver vers22a.dsym vers22a.sym
+build_vers_lib "vers22b" vers22b.c vers22b "" vers22.map vers22b.ver vers22b.dsym ""
+build_vers_lib "vers22" vers22.c vers22 "vers22a.so vers22b.so" "" vers22.ver vers22.dsym ""
--- /dev/null
+extern void bar ();
+
+void
+foo ()
+{
+ bar ();
+}
--- /dev/null
+[0-9a-f]* DF \*UND\* [0-9a-f]* VERS.0 (0x[0-9a-f][0-9a-f])?bar
--- /dev/null
+VERS.0 {
+ global:
+ bar;
+};
--- /dev/null
+Version References:
+ required from tmpdir/vers22b.so:
+ 0x05aa7610 0x00 02 VERS.0
+
--- /dev/null
+__asm__(".symver _old_bar,bar@VERS.0");
+
+void
+_old_bar ()
+{
+}
--- /dev/null
+[0]*[ ]+g[ ]+DO[ ]+\*ABS\*[ ]+[0]*[ ]+VERS.0[ ]+VERS.0
+[0-9a-f]*[ ]+g[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+\(VERS.0\)[ ]+(0x[0-9a-f]*|)[ ]*bar
--- /dev/null
+[0-9a-f]*[ ]+g[ ]+F[ ]+.text[ ]+[0-9a-f]* (0x[0-9a-f][0-9a-f] )?bar@VERS.0
--- /dev/null
+Version definitions:
+1 0x01 0x0660090f vers22a.so
+2 0x00 0x05aa7610 VERS.0
+
--- /dev/null
+void
+bar ()
+{
+}
--- /dev/null
+[0]*[ ]+g[ ]+DO[ ]+\*ABS\*[ ]+[0]*[ ]+VERS.0[ ]+VERS.0
+[0-9a-f]*[ ]+g[ ]+DF[ ]+.text[ ]+[0-9a-f]*[ ]+VERS.0[ ]+(0x[0-9a-f]*|)[ ]*bar
--- /dev/null
+Version definitions:
+1 0x01 0x065f990f vers22b.so
+2 0x00 0x05aa7610 VERS.0
+