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

Michał Lach michal.lach@phoenix-rtos.com
Tue Mar 10 19:03:00 GMT 2026


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
+    ;;
   sparc*-*-*)
     targ_defvec=sparc_elf32_vec
     ;;
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 9f561ed450d..dbec23b0390 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -407,6 +407,7 @@ case ${generic_target} in
     esac ;;
   sparc-*-freebsd*)			fmt=elf em=freebsd ;;
   sparc-*-*bsd*)			fmt=elf em=nbsd ;;
+  sparc-*-phoenix*)			fmt=elf ;;
 
   spu-*-elf)				fmt=elf ;;
 
diff --git a/ld/configure.tgt b/ld/configure.tgt
index ab38c35e790..7f8bda88a5c 100644
--- 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
 			;;
 spu-*-elf*)		targ_emul=elf32_spu
-- 
2.53.0



More information about the Binutils mailing list