[PATCH v3 2/4] i386: add i386-phoenix target

Michal Lach michal.lach@phoenix-rtos.com
Mon Mar 16 11:07:39 GMT 2026


From: Michał Lach <michal.lach@phoenix-rtos.com>

Adds i386-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 627963e9b35..d0dc17589fd 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -785,6 +785,9 @@ case "${targ}" in
     targ_defvec=i386_elf32_vxworks_vec
     targ_underscore=yes
     ;;
+  i[3-6]86-*-phoenix*)
+    targ_defvec=i386_elf32_vec
+    ;;
 
   ia16-*-elf)
     targ_defvec=i386_elf32_vec
diff --git a/gas/configure.tgt b/gas/configure.tgt
index f0ea55d9def..9f561ed450d 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -266,6 +266,7 @@ case ${generic_target} in
   i386-*-*nt*)				fmt=coff em=pe ;;
   i386-*-rdos*)				fmt=elf ;;
   i386-*-darwin*)			fmt=macho ;;
+  i386-*-phoenix*)			fmt=elf ;;
 
   ia16-*-elf*)				fmt=elf ;;
 
diff --git a/ld/configure.tgt b/ld/configure.tgt
index f65601e1b2e..ab38c35e790 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -431,6 +431,8 @@ i[3-7]86-*-haiku*)	targ_emul=elf_i386_haiku
 			;;
 i[3-7]86-*-vxworks*)	targ_emul=elf_i386_vxworks
 			;;
+i[3-6]86-*-phoenix*)	targ_emul=elf_i386
+			;;
 i[3-7]86-*-chaos)	targ_emul=elf_i386_chaos
 			;;
 ia16-*-elf*)		targ_emul=elf_i386
-- 
2.53.0



More information about the Binutils mailing list