diff options
author | Nick Clifton <nickc@redhat.com> | 2004-11-08 08:12:53 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-11-08 08:12:53 +0000 |
commit | 977cdf5aa7f4f2183060c150041405abbc2410a9 (patch) | |
tree | 0cebac5641d1ecd4b8869005951d8d51ecfa973c /ld/testsuite/lib | |
parent | 998b0029709cba36a9e2da16a83bdcbb6e37b2ae (diff) | |
download | gdb-977cdf5aa7f4f2183060c150041405abbc2410a9.zip gdb-977cdf5aa7f4f2183060c150041405abbc2410a9.tar.gz gdb-977cdf5aa7f4f2183060c150041405abbc2410a9.tar.bz2 |
Fix support for PECOFF weak symbols
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 3758937..b4e3f33 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1,5 +1,5 @@ # Support routines for LD testsuite. -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 # Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify @@ -417,6 +417,20 @@ proc is_elf64 { binary_file } { } # +# is_pecoff_format +# true if the object format is known to be PECOFF +# +proc is_pecoff_format {} { + if { ![istarget *-*-mingw32*] \ + && ![istarget *-*-cygwin*] \ + && ![istarget *-*-pe*] } { + return 0 + } + + return 1 +} + +# # simple_diff # compares two files line-by-line # returns differences if exist |