[PATCH] ld: Support LD_UNDER_TEST environment variable
H.J. Lu
hjl.tools@gmail.com
Sat Mar 16 15:36:11 GMT 2024
On Sat, Mar 16, 2024 at 8:28 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Mär 16 2024, H.J. Lu wrote:
>
> > @@ -64,9 +77,16 @@ remote_exec host "mkdir -p tmpdir"
> > if {[info exists ld_testsuite_bindir]} {
> > set gcc_B_opt "-B$ld_testsuite_bindir/"
> > } else {
> > + if [info exists env(LD_UNDER_TEST)] {
> > + file delete -force tmpdir/ld
> > + }
> > if {![file isdirectory tmpdir/ld]} then {
> > catch "exec mkdir tmpdir/ld" status
> > - catch "exec ln -s ../../ld-new tmpdir/ld/ld" status
> > + if [info exists env(LD_UNDER_TEST)] {
> > + catch "exec ln -s $env(LD_UNDER_TEST) tmpdir/ld/ld" status
>
> That won't do the right thing if LD_UNDER_TEST is relative.
>
The v2 patch:
https://sourceware.org/pipermail/binutils/2024-March/133061.html
checks the absolute full path instead.
--
H.J.
More information about the Binutils
mailing list