From: Mike Frysinger <vapier@gentoo.org>
To: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Patch, sim: fix m68hc11 and iq2000 testsuites using dejagnu baseboard files
Date: Tue, 07 Apr 2015 02:58:00 -0000 [thread overview]
Message-ID: <20150407025822.GR16816@vapier> (raw)
In-Reply-To: <201504062339.t36NdMHg006262@ignucius.se.axis.com>
[-- Attachment #1: Type: text/plain, Size: 1875 bytes --]
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.
>
> For iq2000, iq2000-sim.exp has:
> # Special linker script needed to run C programs.
> set_board_info ldscript "-Tsim.ld"
>
> 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.)
>
> For m68hc11, there's a confusingly inconsistent comment and
> setting:
> # No linker script needed.
> set_board_info ldscript "-Wl,--script,sim-valid.x"
>
> 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.
>
> 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
doing `make sim-check`.
i really don't want the sim to get into the business of fighting dejagnu over
what a sane environment looks like. but i also don't want to start sprinkling
this logic over all targets. so moving the existing mips logic to run_sim_test
in lib/sim-defs.exp seems like the least worse option to me.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-04-07 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 23:39 Hans-Peter Nilsson
2015-04-07 2:58 ` Mike Frysinger [this message]
2015-04-07 3:59 ` Hans-Peter Nilsson
2015-04-12 8:21 ` Mike Frysinger
2015-04-13 0:16 ` Hans-Peter Nilsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150407025822.GR16816@vapier \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=hans-peter.nilsson@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox