diff options
| author | Nick Clifton <nickc@redhat.com> | 2004-10-23 17:26:36 +0000 |
|---|---|---|
| committer | Nick Clifton <nickc@redhat.com> | 2004-10-23 17:26:36 +0000 |
| commit | 0fd555c412ecfb816f441dce78a3f288c49eb8e5 (patch) | |
| tree | f6f9da26e659862b61a76fae855fcddf538f33be /binutils/testsuite/lib | |
| parent | 121d8485df3bd59f8a74752e6ef3b7123b482b9e (diff) | |
| download | ppe42-binutils-0fd555c412ecfb816f441dce78a3f288c49eb8e5.tar.gz ppe42-binutils-0fd555c412ecfb816f441dce78a3f288c49eb8e5.zip | |
* dlltool.c: Include <assert.h>.
(PREFIX_ALIAS_BASE): Define.
(struct export): Add member import_name;
(def_exports): Set import_name.
(make_one_lib_file): Remove prefix alias code, use import_name in .idata$6.
(gen_lib_file): Create and delete aliases.
* binutils-all/alias.def: New file.
* binutils-all/dlltool.exp: Two new -p tests.
* config/default.exp (dlltool_gas_flag): New variable.
Copy gas and lds executables into tmpdir/gas directory rather than making
symlinks which might not be supported by the host OS.
Attempt to handle the case where the host OS does not use the .exe extension
but the target OS does.
* lib/utils-lib.exp (exe_ext): New procedure.
Diffstat (limited to 'binutils/testsuite/lib')
| -rw-r--r-- | binutils/testsuite/lib/utils-lib.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/testsuite/lib/utils-lib.exp b/binutils/testsuite/lib/utils-lib.exp index 1bb760751e..25fa035a2c 100644 --- a/binutils/testsuite/lib/utils-lib.exp +++ b/binutils/testsuite/lib/utils-lib.exp @@ -149,3 +149,15 @@ proc is_elf_format {} { } return 1 } + +# +# exe_ext +# Returns target executable extension, if any. +# +proc exe_ext {} { + if { [istarget *-*-mingw32] || [istarget *-*-cygwin*] } { + return ".exe" + } else { + return "" + } +} |

