+2003-04-23 H.J. Lu <hjl@gnu.org>
+
+ * ld-elfvers/vers.exp (objdump_dynsymstuff): Support empty
+ files.
+ (objdump_versionstuff): Likewise.
+ Add tests vers25a, vers25b1 and vers25b2 for versioned
+ definition vs. normal definition in different files.
+
+ * ld-elfvers/vers25a.c: New file.
+ * ld-elfvers/vers25a.dsym: Likewise.
+ * ld-elfvers/vers25a.map: Likewise.
+ * ld-elfvers/vers25a.ver: Likewise.
+
+ * ld-elfvers/vers25b.c: New empty file.
+ * ld-elfvers/vers25b.dsym: Likewise.
+ * ld-elfvers/vers25b.ver: Likewise.
+
2003-04-22 H.J. Lu <hjl@gnu.org>
* ld-elfcomm/elfcomm.exp: Support 64bit targets.
}
close $file_b
+ # Support empty files.
+ if { ![info exists list_a] && ![info exists list_b] } then {
+ return 1
+ }
+
for { set i 0 } { $i < [llength $list_b] } { incr i } {
set line_b [lindex $list_b $i]
close $f1
close $f2
+ # Support empty expected file.
+ if [string match "" $l2] then {
+ return 1
+ }
+
verbose -log "Did not find \"$l2\""
set f1 [open $tmpdir/objdump.out r]
while { [gets $f1 l1] != -1 } {
\"-shared --version-script $srcdir/$subdir/vers24.map\"
\"$as_pic_flags\" {vers24c.c} { { readelf -Wrs vers24.rd } }
\"libvers24c.so\" \"-fpic\""]
+
+# Test versioned definition vs. normal definition in different files.
+build_vers_lib "vers25a" vers25a.c vers25a "" vers25a.map vers25a.ver vers25a.dsym ""
+build_vers_lib "vers25b1" vers25b.c vers25b1 "vers25a.o vers25a.so" "" vers25b.ver vers25b.dsym ""
+build_vers_lib "vers25b2" vers25b.c vers25b2 "vers25a.so vers25a.o" "" vers25b.ver vers25b.dsym ""