From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69415 invoked by alias); 14 Mar 2017 13:56:23 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 69403 invoked by uid 89); 14 Mar 2017 13:56:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2020 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Mar 2017 13:56:19 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 90164815F8; Tue, 14 Mar 2017 14:56:18 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SNoXxSCJHpuS; Tue, 14 Mar 2017 14:56:18 +0100 (CET) Received: from dhcp-guest-231.act-europe.fr (dhcp-guest-231.act-europe.fr [10.10.127.231]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 7AECB815BA; Tue, 14 Mar 2017 14:56:18 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [Patch] ld: check for address space overflow From: Tristan Gingold In-Reply-To: <20170314121729.GM4983@bubble.grove.modra.org> Date: Tue, 14 Mar 2017 13:56:00 -0000 Cc: "H.J. Lu" , binutils Content-Transfer-Encoding: quoted-printable Message-Id: <205F4E12-577B-47D7-B382-E33F1F1173AB@adacore.com> References: <0C5EB7A7-DFB1-404C-A976-E96FC881B89A@adacore.com> <20170314101952.GL4983@bubble.grove.modra.org> <32FDC254-53F6-472C-887A-8FAED5D24CB7@adacore.com> <20170314121729.GM4983@bubble.grove.modra.org> To: Alan Modra X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00207.txt.bz2 > On 14 Mar 2017, at 13:17, Alan Modra wrote: >=20 > On Tue, Mar 14, 2017 at 11:50:27AM +0100, Tristan Gingold wrote: >>=20 >>> On 14 Mar 2017, at 11:19, Alan Modra wrote: >>> The new testcases need some tweaking too. Even after applying the >>> above I'm left with: >>>=20 >>> arm-aout +FAIL: section size overflow >>> arm-coff +FAIL: section size overflow >>> arm-epoc-pe +FAIL: section size overflow >>> arm-pe +FAIL: section size overflow >>> arm-symbianelf +FAIL: section size overflow >>> arm-wince-pe +FAIL: section size overflow >>> i386-linuxaout +FAIL: section size overflow >>> i386-linuxaout +FAIL: section size overflow >>> i386-lynxos +FAIL: section size overflow >>> i386-netware +FAIL: section size overflow >>> i586-aout +FAIL: section size overflow >>> i686-pe +FAIL: section size overflow >>=20 >> What is the host ? 32 bit or 64 bit ? >=20 > 64 bit. x86_64-linux. Would that be ok ? (No need to bother with additional sections). Tristan. commit 6e31e599777fb6a9e09f06b2fc957201b2c7eb4f Author: Tristan Gingold Date: Tue Mar 14 14:54:37 2017 +0100 ld-checks: tweak overflow checks. =20=20=20=20 * testsuite/ld-checks/checks.exp (overflow_check): Disable for non-elf targets. diff --git a/ld/ChangeLog b/ld/ChangeLog index c164710..c988c3b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2017-03-14 Tristan Gingold + + * testsuite/ld-checks/checks.exp (overflow_check): Disable for + non-elf targets. + 2017-03-13 Tristan Gingold =20 * ldlang.c (lang_check_section_addresses): Check for address space diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/che= cks.exp index 782f50a..e411d03 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 + } =20 run_dump_test "over" run_dump_test "over2"