diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-05-12 10:00:06 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@codesourcery.com> | 2011-05-12 10:00:06 +0000 |
commit | de1491f042ec18741bc7427aeb69d9c5ffa1cbd7 (patch) | |
tree | d02d450d867c9080371ec8c0ed60a6b390ea5a51 /ld/testsuite/lib | |
parent | 335e41d4ebaea78f4ae85792b294f183da962c85 (diff) | |
download | gdb-de1491f042ec18741bc7427aeb69d9c5ffa1cbd7.zip gdb-de1491f042ec18741bc7427aeb69d9c5ffa1cbd7.tar.gz gdb-de1491f042ec18741bc7427aeb69d9c5ffa1cbd7.tar.bz2 |
* config/default.exp (ld_assemble): Pass flags parameter to
default_ld_assemble.
(ld_assemble_flags): New function.
* ld-elf/frame.exp: Pass -mpic and -mpid flags to the assembler on
tic6x.
* ld-elf/exclude.exp: Likewise.
* lib/ld-lib.exp (default_ld_assemble): Take extra argument in_flags
and pass it to the assembler.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 0591e8b..2fb8c4a 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -295,14 +295,14 @@ proc default_ld_compile { cc source object } { # Assemble a file. # -proc default_ld_assemble { as source object } { +proc default_ld_assemble { as in_flags source object } { global ASFLAGS global host_triplet if ![info exists ASFLAGS] { set ASFLAGS "" } set flags [big_or_little_endian] - set exec_output [run_host_cmd "$as" "$flags $ASFLAGS -o $object $source"] + set exec_output [run_host_cmd "$as" "$flags $in_flags $ASFLAGS -o $object $source"] set exec_output [prune_warnings $exec_output] if [string match "" $exec_output] then { return 1 |