* 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.
This commit is contained in:
Dave Korn 2009-06-18 02:47:51 +00:00
parent 361dff7384
commit 470c710ef0
7 changed files with 40 additions and 24 deletions

View 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.

View File

@ -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

View 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

View 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

View 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

View File

@ -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)

View File

@ -447,6 +447,7 @@ proc is_aout_format {} {
proc is_pecoff_format {} {
if { ![istarget *-*-mingw*] \
&& ![istarget *-*-cygwin*] \
&& ![istarget *-*-cegcc*] \
&& ![istarget *-*-pe*] } {
return 0
}