[PATCH] ld: Xfail PR ld/31289 tests for some targets

H.J. Lu hjl.tools@gmail.com
Thu Jan 25 18:09:53 GMT 2024


On Thu, Jan 25, 2024 at 8:11 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Xfail PR ld/31289 tests for targets which don't use standard ELF
> emulation since the -z option is unrecognized.
>
>         PR ld/31289
>         * testsuite/ld-elf/fatal-warnings-2a.d: Xfail targets which
>         don't use standard ELF emulation.
>         * testsuite/ld-elf/fatal-warnings-2b.d: Likewise.
>         * testsuite/ld-elf/fatal-warnings-3a.d: Likewise.
>         * testsuite/ld-elf/fatal-warnings-3b.d: Likewise.
>         * testsuite/ld-elf/fatal-warnings-4a.d: Likewise.
>         * testsuite/ld-elf/fatal-warnings-4b.d: Likewise.
> ---
>  ld/testsuite/ld-elf/fatal-warnings-2a.d | 3 ++-
>  ld/testsuite/ld-elf/fatal-warnings-2b.d | 3 ++-
>  ld/testsuite/ld-elf/fatal-warnings-3a.d | 3 ++-
>  ld/testsuite/ld-elf/fatal-warnings-3b.d | 3 ++-
>  ld/testsuite/ld-elf/fatal-warnings-4a.d | 3 ++-
>  ld/testsuite/ld-elf/fatal-warnings-4b.d | 3 ++-
>  6 files changed, 12 insertions(+), 6 deletions(-)
>
> diff --git a/ld/testsuite/ld-elf/fatal-warnings-2a.d b/ld/testsuite/ld-elf/fatal-warnings-2a.d
> index 5c46f4300c6..ac01943fd34 100644
> --- a/ld/testsuite/ld-elf/fatal-warnings-2a.d
> +++ b/ld/testsuite/ld-elf/fatal-warnings-2a.d
> @@ -3,4 +3,5 @@
>  #ld: -z bad-option1 -z bad-option2
>  #warning: -z bad-option1 ignored
>  #xfail: [is_generic]
> -# generic linker targets don't support -z options.
> +#xfail: fr30-*-* frv-*-elf ft32-*-* iq2000-*-* ms1-*-* msp*-*
> +# They don't support -z options.
> diff --git a/ld/testsuite/ld-elf/fatal-warnings-2b.d b/ld/testsuite/ld-elf/fatal-warnings-2b.d
> index 5fa94e467af..a15a89a92f2 100644
> --- a/ld/testsuite/ld-elf/fatal-warnings-2b.d
> +++ b/ld/testsuite/ld-elf/fatal-warnings-2b.d
> @@ -3,4 +3,5 @@
>  #ld: -z bad-option1 -z bad-option2
>  #warning: -z bad-option2 ignored
>  #xfail: [is_generic]
> -# generic linker targets don't support -z options.
> +#xfail: fr30-*-* frv-*-elf ft32-*-* iq2000-*-* ms1-*-* msp*-*
> +# They don't support -z options.
> diff --git a/ld/testsuite/ld-elf/fatal-warnings-3a.d b/ld/testsuite/ld-elf/fatal-warnings-3a.d
> index a377b738b1d..c2817b2678c 100644
> --- a/ld/testsuite/ld-elf/fatal-warnings-3a.d
> +++ b/ld/testsuite/ld-elf/fatal-warnings-3a.d
> @@ -3,4 +3,5 @@
>  #ld: --fatal-warnings -z bad-option1 -z bad-option2
>  #error: unsupported option: -z bad-option1
>  #xfail: [is_generic]
> -# generic linker targets don't support -z options.
> +#xfail: fr30-*-* frv-*-elf ft32-*-* iq2000-*-* ms1-*-* msp*-*
> +# They don't support -z options.
> diff --git a/ld/testsuite/ld-elf/fatal-warnings-3b.d b/ld/testsuite/ld-elf/fatal-warnings-3b.d
> index 87ea286d748..c3be0ab8906 100644
> --- a/ld/testsuite/ld-elf/fatal-warnings-3b.d
> +++ b/ld/testsuite/ld-elf/fatal-warnings-3b.d
> @@ -3,4 +3,5 @@
>  #ld: --fatal-warnings -z bad-option1 -z bad-option2
>  #error: unsupported option: -z bad-option2
>  #xfail: [is_generic]
> -# generic linker targets don't support -z options.
> +#xfail: fr30-*-* frv-*-elf ft32-*-* iq2000-*-* ms1-*-* msp*-*
> +# They don't support -z options.
> diff --git a/ld/testsuite/ld-elf/fatal-warnings-4a.d b/ld/testsuite/ld-elf/fatal-warnings-4a.d
> index 4685e3877d6..a635b53c157 100644
> --- a/ld/testsuite/ld-elf/fatal-warnings-4a.d
> +++ b/ld/testsuite/ld-elf/fatal-warnings-4a.d
> @@ -3,4 +3,5 @@
>  #ld: -z bad-option1 -z bad-option2 --fatal-warnings
>  #error: unsupported option: -z bad-option1
>  #xfail: [is_generic]
> -# generic linker targets don't support -z options.
> +#xfail: fr30-*-* frv-*-elf ft32-*-* iq2000-*-* ms1-*-* msp*-*
> +# They don't support -z options.
> diff --git a/ld/testsuite/ld-elf/fatal-warnings-4b.d b/ld/testsuite/ld-elf/fatal-warnings-4b.d
> index 6fc2185f126..512a518dd64 100644
> --- a/ld/testsuite/ld-elf/fatal-warnings-4b.d
> +++ b/ld/testsuite/ld-elf/fatal-warnings-4b.d
> @@ -3,4 +3,5 @@
>  #ld: -z bad-option1 -z bad-option2 --fatal-warnings
>  #error: unsupported option: -z bad-option2
>  #xfail: [is_generic]
> -# generic linker targets don't support -z options.
> +#xfail: fr30-*-* frv-*-elf ft32-*-* iq2000-*-* ms1-*-* msp*-*
> +# They don't support -z options.
> --
> 2.43.0
>

This patch is superseded by

https://sourceware.org/pipermail/binutils/2024-January/132134.html

which I will check it in shortly.


-- 
H.J.


More information about the Binutils mailing list