From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124444 invoked by alias); 7 Apr 2015 02:58:27 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 124433 invoked by uid 89); 7 Apr 2015 02:58:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 07 Apr 2015 02:58:25 +0000 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id C395A34070F; Tue, 7 Apr 2015 02:58:22 +0000 (UTC) Date: Tue, 07 Apr 2015 02:58:00 -0000 From: Mike Frysinger To: Hans-Peter Nilsson Cc: gdb-patches@sourceware.org Subject: Re: Patch, sim: fix m68hc11 and iq2000 testsuites using dejagnu baseboard files Message-ID: <20150407025822.GR16816@vapier> Mail-Followup-To: Hans-Peter Nilsson , gdb-patches@sourceware.org References: <201504062339.t36NdMHg006262@ignucius.se.axis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="58yjuNbz5lCTNNJH" Content-Disposition: inline In-Reply-To: <201504062339.t36NdMHg006262@ignucius.se.axis.com> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00177.txt.bz2 --58yjuNbz5lCTNNJH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1861 On 07 Apr 2015 01:39, Hans-Peter Nilsson wrote: > All of a sudden (thanks to Mike) m68hc11 and iq2000 sims both > have test-suites, with a very welcome hello-world test. But, > for people expecting that to work with the corresponding > supposedly-intended dejagnu baseboard, those tests fail linking. >=20 > For iq2000, iq2000-sim.exp has: > # Special linker script needed to run C programs. > set_board_info ldscript "-Tsim.ld" >=20 > but there's no sim.ld installed with today's binutils > which is all we require for running the sim testsuite. > (I see it's in libgloss.) >=20 > For m68hc11, there's a confusingly inconsistent comment and > setting: > # No linker script needed. > set_board_info ldscript "-Wl,--script,sim-valid.x" >=20 > I'm not sure where the .x suffix comes from; libgloss would > install a sim-valid.ld. You might wonder how that gcc-specific > "-Wl,"-syntax is supposed to work with a plain linker call. The > (IMHO) ugly truth is that default_link target.exp would strip a > "-Wl,"-prefix, but it doesn't take care to *also* replace "," > with " ", so I don't think that has ever worked with plain > linker calls; those that end up in default_link calls. >=20 > Locally eliminating ldscript probably seems ugly. There's > precedent; see sim/testsuite/sim/mips/basic.exp. An alternative > would be to automatically disabling it in the first call to > run_sim_test, but that seemed just too smart. odd, it's working for me. what is different about your environment ? i'm = just=20 doing `make sim-check`. i really don't want the sim to get into the business of fighting dejagnu ov= er=20 what a sane environment looks like. but i also don't want to start sprinkl= ing=20 this logic over all targets. so moving the existing mips logic to run_sim_= test=20 in lib/sim-defs.exp seems like the least worse option to me. -mike --58yjuNbz5lCTNNJH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVI0fOAAoJEEFjO5/oN/WBLQQP/j4tqb0V5RLMayai7eGFTtfz M0hbvu9xQLVozKjzUfcq0hvpwg6+niOXnU8ZhQZOdwYhFX2i3NmntTtRbIIqPz3K 74Cx0TY1FEDjywHGVzmMiE8a1uEUcqWazIV38J5sPv/xddz070/sGW3wzgs1iL2q lisrDRwBwF1AAbgPnYkEvGepTpzjcJd4pcoYbCxc4U/BVDoT+13fK6d5YXHeeZFI LDM7kZ4q7jyTDN+mV1EHrcm04l/16bORXDg2Hee+TBYUCdFc9pG7meyoeJmmrhsP aKfIvwzKMPZtzR2JQg+qDQJwmfAPSD3v25EdqCGR18lATmZaLOgpsihtxBoNDh3a iWBx5TbkSMjrQxiPSyMGUfV9lXPvx7ubAw8m+gT680kf0rxosWFS5PMRUqfh7f06 sUCQieXpd41F1pWMtYEr3LVOtuR7eGkoZTilGr1oo5k9NxyZh7MuDlRD453wbOoJ aihZfNifkS5InDdAUJe9H+RcxAgsb8VOv9F0THT/LFbvH1LFDgC6IodG1rNtakZq b5NDl/dMyBwzjgLLBVPaAAOPg9rzgP6c3MR8zcBmjE0sCy1uzcrm89RlhagZ1Z1+ IDNfbW04UbPML5Qv8b13HGk71SgspNQHVv3lw5wE++ewFclj1NHuSC7CvjApGcPE BtnZ8R88S653fJsQuFkP =QjAF -----END PGP SIGNATURE----- --58yjuNbz5lCTNNJH--