From 9494d9636612cd9bd22e38625fbc89147beafea7 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 14 Mar 2017 14:54:37 +0100 Subject: [PATCH] ld-checks: tweak overflow checks. * testsuite/ld-checks/checks.exp (overflow_check): Disable for non-elf targets. --- ld/ChangeLog | 5 +++++ ld/testsuite/ld-checks/checks.exp | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index df8bb32932e..1f1fafd9e3a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2017-03-15 Tristan Gingold + + * testsuite/ld-checks/checks.exp (overflow_check): Disable for + non-elf targets. + 2017-03-14 H.J. Lu * ldlang.c (lang_check_section_addresses): Use addr_mask to diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/checks.exp index 782f50a4c0d..e411d03f269 100644 --- a/ld/testsuite/ld-checks/checks.exp +++ b/ld/testsuite/ld-checks/checks.exp @@ -85,6 +85,9 @@ proc overflow_check {} { && ![istarget arm*-*-*] } { return } + if ![is_elf_format] { + return + } run_dump_test "over" run_dump_test "over2" -- 2.30.2