diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-05-16 05:04:34 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-05-16 05:04:34 +0000 |
commit | b765d4e375fe9067743c493c97f22879597e901c (patch) | |
tree | 998d522b4db166ed45468d96d4ee99b45524b56a /ld/testsuite/config | |
parent | ccd066678e93f9800d7442aaaedec4b657f89231 (diff) | |
download | gdb-b765d4e375fe9067743c493c97f22879597e901c.zip gdb-b765d4e375fe9067743c493c97f22879597e901c.tar.gz gdb-b765d4e375fe9067743c493c97f22879597e901c.tar.bz2 |
2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp (gcc_ld_flag): New. Make the newly built
linker available to gcc.
* lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
to gcc.
* ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfweak/elfweak.exp: Likewise.
* ld-shared/shared.exp: Likewise.
* ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvsb/elfvsb.exp: Remove xfail for powerpc-*-linux*.
* ld-elfweak/elfweak.exp: Use PIC for shared libraries.
Diffstat (limited to 'ld/testsuite/config')
-rw-r--r-- | ld/testsuite/config/default.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 432a1a8..e883e87 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -60,6 +60,15 @@ if {![file isdirectory tmpdir/gas]} then { } set gcc_gas_flag "-B[pwd]/tmpdir/gas/" +# Make a symlink from tmpdir/ld to the linker in the build tree, so +# that we can use a -B option to gcc to force it to use the newly +# built linker. +if {![file isdirectory tmpdir/ld]} then { + catch "exec mkdir tmpdir/ld" status + catch "exec ln -s ../../ld-new tmpdir/ld/ld" status +} +set gcc_ld_flag "-B[pwd]/tmpdir/ld/" + # The mips64-*-linux-gnu compiler defaults to the N32 ABI after # installed, but to the O32 ABI in the build tree, because of some # specs-file hacks. Make sure we use an ABI that is compatible with |