+2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elfvers/vers.exp (build_binary): Support build exeutable.
+ (build_binary): Renamed from ...
+ (build_vers_lib): This.
+ (build_vers_lib_no_pic): Updated.
+ (build_vers_lib_pic): Likewise.
+ Add vers27d1, vers27d2 and vers27d3 to test versioned
+ definition for hidden symbol referenced by a DSO.
+
+ * ld-elfvers/vers27d.dsym: New file.
+ * ld-elfvers/vers27d.sym: Likewise.
+ * ld-elfvers/vers27d.ver: Likewise.
+ * ld-elfvers/vers27d1.c: Likewise.
+ * ld-elfvers/vers27d2.c: Likewise.
+ * ld-elfvers/vers27d3.c: Likewise.
+
2003-05-07 Andreas Schwab <schwab@suse.de>
* ld-elfvsb/elfvsb.exp: Run dump tests even when cross
}
}
-proc build_vers_lib { pic test source libname other mapfile verexp versymexp symexp } {
+proc build_binary { shared pic test source libname other mapfile verexp versymexp symexp } {
global ld
global srcdir
global subdir
global objdump
global CC
global CFLAGS
- global shared
global script
if ![ld_compile "$CC -S $pic $CFLAGS" $srcdir/$subdir/$source $tmpdir/$libname.s] {
}
+proc build_executable { test source libname other mapfile verexp versymexp symexp } {
+ build_binary "" "" $test $source $libname $other $mapfile $verexp $versymexp $symexp
+}
+
proc build_vers_lib_no_pic { test source libname other mapfile verexp versymexp symexp } {
- build_vers_lib "" $test $source $libname $other $mapfile $verexp $versymexp $symexp
+ global shared
+ build_binary $shared "" $test $source $libname $other $mapfile $verexp $versymexp $symexp
}
proc build_vers_lib_pic { test source libname other mapfile verexp versymexp symexp } {
global picflag
- build_vers_lib $picflag $test $source $libname $other $mapfile $verexp $versymexp $symexp
+ global shared
+ build_binary $shared $picflag $test $source $libname $other $mapfile $verexp $versymexp $symexp
}
proc test_ldfail { test flag source execname other mapfile whyfail } {
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 ""
+build_vers_lib_pic "vers27d1" vers27d1.c vers27d1 "" vers27a.map vers27d.ver vers27d.dsym vers27d.sym
+build_vers_lib_pic "vers27d2" vers27d2.c vers27d2 "" "" vers27b.ver vers27b.dsym ""
+build_executable "vers27d3" vers27d3.c vers27d3 "vers27b.o vers27d2.so vers27d1.so" "" vers27b.ver vers27b.dsym ""