[PATCH v2 3/4] sparc: add sparc-phoenix target

Jan Beulich jbeulich@suse.com
Fri Mar 13 14:47:06 GMT 2026


On 10.03.2026 20:03, Michał Lach wrote:
> Adds sparc-phoenix target from downstream Phoenix-RTOS patches.
> 
> Co-authored-by: Hubert Badocha <hubert.badocha@phoenix-rtos.com>
> Signed-off-by: Michal Lach <michal.lach@phoenix-rtos.com>
> ---
>  bfd/config.bfd    | 3 +++
>  gas/configure.tgt | 1 +
>  ld/configure.tgt  | 2 ++
>  3 files changed, 6 insertions(+)
> 
> diff --git a/bfd/config.bfd b/bfd/config.bfd
> index d0dc17589fd..5933365a617 100644
> --- a/bfd/config.bfd
> +++ b/bfd/config.bfd
> @@ -1378,6 +1378,9 @@ case "${targ}" in
>      targ_defvec=sparc_elf32_sol2_vec
>      targ_selvecs=sparc_elf32_vec
>      ;;
> +  sparc-*-phoenix*)
> +    targ_defvec=sparc_elf32_vec
> +    ;;

Why would you need to add this, when ...

>    sparc*-*-*)
>      targ_defvec=sparc_elf32_vec
>      ;;

... this serves you fine?

> --- a/ld/configure.tgt
> +++ b/ld/configure.tgt
> @@ -910,6 +910,8 @@ sparc*-*-solaris*)
>  			;;
>  sparc*-*-vxworks*)	targ_emul=elf32_sparc_vxworks
>  			;;
> +sparc-*-*phoenix*)	targ_emul=elf32_sparc
> +			;;
>  sparc*-*-*)		targ_emul=elf32_sparc
>  			;;

Same here.

Jan


More information about the Binutils mailing list