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 df8bb32932eb65a83f5b5d6c99dfc41b8a7f303d..1f1fafd9e3a6add36dcb516b2b771807b94d62d2 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 782f50a4c0d215f7dc4d09e114f829702706bfb7..e411d03f269e8a8eb8f6f1009929299a2fac0807 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"