ld-checks: tweak overflow checks.
authorTristan Gingold <gingold@adacore.com>
Tue, 14 Mar 2017 13:54:37 +0000 (14:54 +0100)
committerTristan Gingold <gingold@adacore.com>
Wed, 15 Mar 2017 09:23:19 +0000 (10:23 +0100)
* testsuite/ld-checks/checks.exp (overflow_check): Disable for
non-elf targets.

ld/ChangeLog
ld/testsuite/ld-checks/checks.exp

index df8bb32..1f1fafd 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-15  Tristan Gingold  <gingold@adacore.com>
+
+       * testsuite/ld-checks/checks.exp (overflow_check): Disable for
+       non-elf targets.
+
 2017-03-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ldlang.c (lang_check_section_addresses): Use addr_mask to
index 782f50a..e411d03 100644 (file)
@@ -85,6 +85,9 @@ proc overflow_check {} {
         && ![istarget arm*-*-*] } {
        return
     }
+    if ![is_elf_format] {
+       return
+    }
 
     run_dump_test "over"
     run_dump_test "over2"