[PATCH v4] ld: Support LD_UNDER_TEST environment variable
H.J. Lu
hjl.tools@gmail.com
Tue Mar 19 14:07:35 GMT 2024
On Tue, Mar 19, 2024 at 5:07 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi H.J.
>
> > Support LD_UNDER_TEST environment variable to test a different linker.
> > Issue an error if LD_UNDER_TEST isn't an absolute full path.
>
> I would ask for one more change:
>
> > + perror "**************************************************"
> > + perror "$env(LD_UNDER_TEST) isn't an absolute full path."
> > + perror "**************************************************"
>
> If I am reading this correctly the error message will show the contents
> of the LD_UNDER_TEST environment variable, but not the name of the variable.
> This could be confusing if the user does not realise that they have the
> variable set. Therefore please could you update the message to something
> like:
>
> perror "Environment variable LD_UNDER_TEST ($env(LD_UNDER_TEST)) is not an absolute full path"
>
> And similarly for the other error message.
Fixed.
> Patch approved with these changes,.
>
> Cheers
> Nick
>
This is what I am checking in.
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Support-LD_UNDER_TEST-environment-variable.patch
Type: text/x-patch
Size: 2626 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240319/c2047b82/attachment.bin>
More information about the Binutils
mailing list