public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: [PATCH v2] ld: Support LD_UNDER_TEST environment variable
Date: Sat, 16 Mar 2024 17:15:54 +0100	[thread overview]
Message-ID: <878r2ijgp1.fsf@igel.home> (raw)
In-Reply-To: <20240316153452.355488-1-hjl.tools@gmail.com> (H. J. Lu's message of "Sat, 16 Mar 2024 08:34:52 -0700")

On Mär 16 2024, H.J. Lu wrote:

> Support LD_UNDER_TEST environment variable to test a different linker.
> Issue an error if LD_UNDER_TEST isn't an absolute full path.
>
> 	* testsuite/config/default.exp: If LD_UNDER_TEST environment
> 	variable exists, set ld and LD to it and set up tmpdir/ld/ld.
> 	Issue an error if LD_UNDER_TEST isn't an absolute full path.
> ---
>  ld/testsuite/config/default.exp | 22 +++++++++++++++++++++-
>  1 file changed, 21 insertions(+), 1 deletion(-)
>
> diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
> index 705543054c2..25e94ac8df6 100644
> --- a/ld/testsuite/config/default.exp
> +++ b/ld/testsuite/config/default.exp
> @@ -21,6 +21,19 @@
>  # Written by Jeffrey Wheat (cassidy@cygnus.com)
>  #
>  
> +if [info exists env(LD_UNDER_TEST)] {
> +    # LD_UNDER_TEST must be an absolute full path.
> +    catch "file dirname $env(LD_UNDER_TEST)" dirname
> +    if {[string index $dirname 0] ne "/"} {

[file pathtype $env(LD_UNDER_TEST)] ne "absolute"

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

      reply	other threads:[~2024-03-16 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-16 15:34 H.J. Lu
2024-03-16 16:15 ` Andreas Schwab [this message]

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=878r2ijgp1.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).