* ld-pe/pe-run.exp (proc test_direct_link_dll): Always pass
authorDave Korn <dave.korn@artimi.com>
Thu, 18 Jun 2009 02:47:51 +0000 (02:47 +0000)
committerDave Korn <dave.korn@artimi.com>
Thu, 18 Jun 2009 02:47:51 +0000 (02:47 +0000)
--enable-auto-import to the linker.
* ld-pe/vers-script-1.d:  Replace '\$' by '_' in all symbol names.
* ld-pe/vers-script-3.d:  Likewise.
* ld-pe/vers-script-4.d:  Likewise.
* ld-pe/vers-script-dll.c:  Likewise.
* lib/ld-lib.exp (proc is_pecoff_format):  Also return true for
"*-*-cegcc*" targets.

ld/testsuite/ChangeLog
ld/testsuite/ld-pe/pe-run.exp
ld/testsuite/ld-pe/vers-script-1.d
ld/testsuite/ld-pe/vers-script-3.d
ld/testsuite/ld-pe/vers-script-4.d
ld/testsuite/ld-pe/vers-script-dll.c
ld/testsuite/lib/ld-lib.exp

index c8a130522570742a25d4fd02e01cfdb4d6d87402..fbd1ff4fe9be2486baf5a8f8f41f2e82d295dc20 100644 (file)
@@ -1,3 +1,14 @@
+2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * ld-pe/pe-run.exp (proc test_direct_link_dll):  Always pass
+       --enable-auto-import to the linker.
+       * ld-pe/vers-script-1.d:  Replace '\$' by '_' in all symbol names.
+       * ld-pe/vers-script-3.d:  Likewise.
+       * ld-pe/vers-script-4.d:  Likewise.
+       * ld-pe/vers-script-dll.c:  Likewise.
+       * lib/ld-lib.exp (proc is_pecoff_format):  Also return true for
+       "*-*-cegcc*" targets.
+
 2009-06-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-ifunc/ifunc-9-x86.d: Fix a typo.
index 3e7c356cff03d73c4e00ff904ab75d9920ae4e20..9fa6bdbcb85d32e452ec3eb277b4eb7db306d7aa 100755 (executable)
@@ -83,7 +83,8 @@ proc test_direct_link_dll {} {
        } else {
            # Check linking directly to direct_dll.dll.
            set msg "linking client (.dll)"
-           if [ld_simple_link $CC $tmpdir/direct_client_dll.exe "$tmpdir/direct_client.o $tmpdir/direct_dll.dll" ] {
+           if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_dll.exe
+             "$tmpdir/direct_client.o $tmpdir/direct_dll.dll" ] {
                pass $msg
            } else {
                fail $msg 
@@ -91,7 +92,8 @@ proc test_direct_link_dll {} {
 
            # Check linking directly to direct_dll.sl.
            set msg "linking client (.sl)"
-           if [ld_simple_link $CC $tmpdir/direct_client_sl.exe "$tmpdir/direct_client.o $tmpdir/direct_dll.sl" ] {
+           if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_sl.exe
+             "$tmpdir/direct_client.o $tmpdir/direct_dll.sl" ] {
                pass $msg
            } else {
                fail $msg 
@@ -101,7 +103,8 @@ proc test_direct_link_dll {} {
            # Create symbolic link.
            catch "exec ln -fs direct_dll.dll $tmpdir/libdirect_dll.dll.a" ln_catch
            set msg "linking client (symlink -> .dll)"
-           if [ld_simple_link $CC $tmpdir/direct_client_symlink_dll.exe "$tmpdir/direct_client.o $tmpdir/libdirect_dll.dll.a" ] {
+           if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_symlink_dll.exe
+             "$tmpdir/direct_client.o $tmpdir/libdirect_dll.dll.a" ] {
                pass $msg
            } else {
                fail $msg
@@ -111,7 +114,8 @@ proc test_direct_link_dll {} {
            # Create symbolic link.
            catch "exec ln -fs direct_dll.sl $tmpdir/libdirect_sl.dll.a" ln_catch
            set msg "linking client (symlink -> .sl)"
-           if [ld_simple_link $CC $tmpdir/direct_client_symlink_sl.exe "$tmpdir/direct_client.o $tmpdir/libdirect_sl.dll.a" ] {
+           if [ld_simple_link "$CC -Wl,--enable-auto-import" $tmpdir/direct_client_symlink_sl.exe
+             "$tmpdir/direct_client.o $tmpdir/libdirect_sl.dll.a" ] {
                pass $msg
            } else {
                fail $msg 
index a6c0bec5a39bbdcb3ae050b6454aa26ce526a9ba..d494cfc9d24109bbfe97b62d23b04755892f2679 100644 (file)
@@ -80,11 +80,11 @@ EXPORTS
     _Z9_Jv_ZFreePvS_ @79
     _Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi @80
     _Z9shsUpdateP8SHS_INFOPhi @81
-    _ZGr30_java\$Sutil\$Sweeks\$_properties @82
-    _ZGr32_java\$Sutil\$Siso4217\$_properties @83
-    _ZGr48_gnu\$Sjavax\$Sprint\$SPrinterDialog_de\$_properties @84
-    _ZGr49_gnu\$Sjava\$Slocale\$SLocaleInformation\$_properties @85
-    _ZGr51_gnu\$Sjava\$Sutil\$Sregex\$SMessagesBundle\$_properties @86
+    _ZGr30_java_Sutil_Sweeks__properties @82
+    _ZGr32_java_Sutil_Siso4217__properties @83
+    _ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties @84
+    _ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties @85
+    _ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties @86
     _ZTVN5javax8security4auth4x50021X500PrivateCredentialE @87
     _ZTVN5javax8security4auth5login12LoginContextE @88
     _ZTVN5javax8security4auth5login13ConfigurationE @89
index 679a6555c44b79656af331eb5c19136715ab1510..0feafe060ba3a9b20541c5ac671dfa5c3314475e 100644 (file)
@@ -62,11 +62,11 @@ EXPORTS
     _Z9_Jv_ZFreePvS_ @61
     _Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi @62
     _Z9shsUpdateP8SHS_INFOPhi @63
-    _ZGr30_java\$Sutil\$Sweeks\$_properties @64
-    _ZGr32_java\$Sutil\$Siso4217\$_properties @65
-    _ZGr48_gnu\$Sjavax\$Sprint\$SPrinterDialog_de\$_properties @66
-    _ZGr49_gnu\$Sjava\$Slocale\$SLocaleInformation\$_properties @67
-    _ZGr51_gnu\$Sjava\$Sutil\$Sregex\$SMessagesBundle\$_properties @68
+    _ZGr30_java_Sutil_Sweeks__properties @64
+    _ZGr32_java_Sutil_Siso4217__properties @65
+    _ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties @66
+    _ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties @67
+    _ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties @68
     _ZTVN5javax8security4auth4x50021X500PrivateCredentialE @69
     _ZTVN5javax8security4auth5login12LoginContextE @70
     _ZTVN5javax8security4auth5login13ConfigurationE @71
index 679a6555c44b79656af331eb5c19136715ab1510..0feafe060ba3a9b20541c5ac671dfa5c3314475e 100644 (file)
@@ -62,11 +62,11 @@ EXPORTS
     _Z9_Jv_ZFreePvS_ @61
     _Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi @62
     _Z9shsUpdateP8SHS_INFOPhi @63
-    _ZGr30_java\$Sutil\$Sweeks\$_properties @64
-    _ZGr32_java\$Sutil\$Siso4217\$_properties @65
-    _ZGr48_gnu\$Sjavax\$Sprint\$SPrinterDialog_de\$_properties @66
-    _ZGr49_gnu\$Sjava\$Slocale\$SLocaleInformation\$_properties @67
-    _ZGr51_gnu\$Sjava\$Sutil\$Sregex\$SMessagesBundle\$_properties @68
+    _ZGr30_java_Sutil_Sweeks__properties @64
+    _ZGr32_java_Sutil_Siso4217__properties @65
+    _ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties @66
+    _ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties @67
+    _ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties @68
     _ZTVN5javax8security4auth4x50021X500PrivateCredentialE @69
     _ZTVN5javax8security4auth5login12LoginContextE @70
     _ZTVN5javax8security4auth5login13ConfigurationE @71
index 9b7a57414c9b1d4810f05bd135b3e44756888e33..547ddb5a7d439a36476b3ca51d2523597baa9c36 100755 (executable)
@@ -148,9 +148,9 @@ FUNC(_Z9_Jv_RunGCv)
 FUNC(_Z9_Jv_ZFreePvS_)
 FUNC(_Z9_Jv_equalP13_Jv_Utf8ConstPN4java4lang6StringEi)
 FUNC(_Z9shsUpdateP8SHS_INFOPhi)
-FUNC(_ZGr30_java$Sutil$Sweeks$_properties)
-FUNC(_ZGr32_java$Sutil$Siso4217$_properties)
-FUNC(_ZGr48_gnu$Sjavax$Sprint$SPrinterDialog_de$_properties)
-FUNC(_ZGr49_gnu$Sjava$Slocale$SLocaleInformation$_properties)
-FUNC(_ZGr51_gnu$Sjava$Sutil$Sregex$SMessagesBundle$_properties)
+FUNC(_ZGr30_java_Sutil_Sweeks__properties)
+FUNC(_ZGr32_java_Sutil_Siso4217__properties)
+FUNC(_ZGr48_gnu_Sjavax_Sprint_SPrinterDialog_de__properties)
+FUNC(_ZGr49_gnu_Sjava_Slocale_SLocaleInformation__properties)
+FUNC(_ZGr51_gnu_Sjava_Sutil_Sregex_SMessagesBundle__properties)
 
index e11753de3f3223934d6ab124766c9c9dfcb8c6a6..a0b7e5e7eed58f5695c3e23aa5381fd5394abfa6 100644 (file)
@@ -447,6 +447,7 @@ proc is_aout_format {} {
 proc is_pecoff_format {} {
     if { ![istarget *-*-mingw*] \
         && ![istarget *-*-cygwin*] \
+        && ![istarget *-*-cegcc*] \
         && ![istarget *-*-pe*] } {
        return 0
     }