diff options
author | Alan Modra <amodra@gmail.com> | 2014-07-07 13:37:16 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-07-07 13:37:16 +0930 |
commit | f1d7f4a64c4d92911127abe6dbab95a219405c2b (patch) | |
tree | 9f5cc8a957f131c1677e483402a301914b0ac66c /opcodes | |
parent | f60ec1cfa8f5e8aa27ffc5db5a344b5db2efe97b (diff) | |
download | gdb-f1d7f4a64c4d92911127abe6dbab95a219405c2b.zip gdb-f1d7f4a64c4d92911127abe6dbab95a219405c2b.tar.gz gdb-f1d7f4a64c4d92911127abe6dbab95a219405c2b.tar.bz2 |
Ensure ld testsuite gcc -B options precede $CC -B options
Various ld-elf/shared.exp and ld-plugin/lto.exp tests simply appended
the testsuite -B options intended to force gcc use the linker under test.
This fails if $CC itself has -B options, as when setting CC to run gcc
out of a build directory. Net result is that tests were run using
the gcc build dir collect-ld.
* config/default.exp: Don't make tmpdir/gas. Put as symlink into
tmpdir/ld.
(gcc_gas_flag, gcc_ld_flag): Delete.
(gcc_B_opt, ld_L_opt): New globals.
ld-elf/shared.exp: Remove all refs to gcc_gas_flag and gcc_ld_flag.
ld-plugin/lto.exp: Likewise.
lib/ld-lib.exp (run_host_cmd): Add gcc_B_opt and ld_L_opt here.
(ld_simple_link): Remove -B handling now that this is done in
run_host_cmd. Simplify.
(default_ld_compile): Simplify.
(check_lto_available): Use run_host_cmd_yesno.
(check_lto_shared_available): Likewise.
Diffstat (limited to 'opcodes')
0 files changed, 0 insertions, 0 deletions