* 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.
+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.
+
2007-07-06 Nick Clifton <nickc@redhat.com>
* lib/default.exp: Update copyright notice to refer to GPLv3.
# 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"
--- /dev/null
+VERS_1 { foo; };
--- /dev/null
+void foo(void) {}
--- /dev/null
+[0]* g DO \*ABS\* [0]* VERS_1 VERS_1
+[0-9a-f]* g DF (.text|\*ABS\*) [0-9a-f]* VERS_1 (0x[0-9a-f][0-9a-f] )?foo
--- /dev/null
+Version definitions:
+[1-2] 0x01 0x0670090f vers32a.so
+[1-2] 0x00 0x05aa7921 VERS_1
+
--- /dev/null
+/* Empty */
--- /dev/null
+[0-9a-f]* g D \*ABS\* [0-9a-f]* VERS_1 (0x[0-9a-f][0-9a-f] )?foo
+[0]* g DO \*ABS\* [0]* VERS_1 VERS_1
--- /dev/null
+Version definitions:
+[1-2] 0x01 0x066f990f vers32b.so
+[1-2] 0x00 0x05aa7921 VERS_1
+
--- /dev/null
+[0-9a-f]* g DF \*ABS\* [0-9a-f]* VERS_1 (0x[0-9a-f][0-9a-f] )?foo
+[0]* g DO \*ABS\* [0]* VERS_1 VERS_1
--- /dev/null
+Version definitions:
+[1-2] 0x01 0x066fa90f vers32c.so
+[1-2] 0x00 0x05aa7921 VERS_1
+
--- /dev/null
+Version definitions:
+[1-2] 0x01 0x066fb90f vers32d.so
+[1-2] 0x00 0x05aa7921 VERS_1
+