Skip to content

Commit

Permalink
Add support for Zephyr RTOS
Browse files Browse the repository at this point in the history
TODO: Add ChangeLog
  • Loading branch information
stephanosio committed Jul 11, 2021
1 parent 8630600 commit 297cdf0
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
4 changes: 4 additions & 0 deletions bfd/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2021-07-12 Stephanos Ioannidis <[email protected]>

* configure.tgt: Add support for Zephyr RTOS.

2020-07-24 Nick Clifton <[email protected]>

2.35 Release:
Expand Down
17 changes: 13 additions & 4 deletions bfd/config.bfd
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ case "${targ}" in
targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
want64=true
;;
aarch64-*-elf | aarch64-*-rtems*)
aarch64-*-elf | aarch64-*-rtems* | aarch64-*-zephyr*)
targ_defvec=aarch64_elf64_le_vec
targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
want64=true
Expand Down Expand Up @@ -324,7 +324,7 @@ case "${targ}" in
targ_selvecs=arc_elf32_le_vec
;;

arc*-*-elf* | arc*-*-linux*)
arc*-*-elf* | arc*-*-linux* | arc*-*-zephyr*)
targ_defvec=arc_elf32_le_vec
targ_selvecs=arc_elf32_be_vec
;;
Expand Down Expand Up @@ -384,7 +384,7 @@ case "${targ}" in
;;
arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi)
arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi | arm*-*-zephyr*)
targ_defvec=arm_elf32_le_vec
targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec"
;;
Expand Down Expand Up @@ -697,6 +697,11 @@ case "${targ}" in
targ_selvecs=i386_elf32_vec
want64=true
;;
x86_64-*-zephyr*)
targ_defvec=x86_64_elf64_vec
targ_selvecs="x86_64_elf32_vec i386_elf32_vec iamcu_elf32_vec"
want64=true
;;
#endif
i[3-7]86-*-lynxos*)
targ_defvec=i386_elf32_vec
Expand Down Expand Up @@ -741,6 +746,10 @@ case "${targ}" in
targ_defvec=i386_elf32_vxworks_vec
targ_underscore=yes
;;
i[3-7]86-*-zephyr*)
targ_defvec=i386_elf32_vec
targ_selvecs=iamcu_elf32_vec
;;

ia16-*-elf)
targ_defvec=i386_elf32_vec
Expand Down Expand Up @@ -877,7 +886,7 @@ case "${targ}" in
targ_defvec=mips_elf32_le_vec
targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
;;
mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none)
mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none | mips*-*-zephyr*)
targ_defvec=mips_elf32_be_vec
targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
;;
Expand Down
4 changes: 4 additions & 0 deletions gas/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2021-07-12 Stephanos Ioannidis <[email protected]>

* configure.tgt: Add support for Zephyr RTOS.

2020-07-24 Nick Clifton <[email protected]>

2.35 Release:
Expand Down
1 change: 1 addition & 0 deletions gas/configure.tgt
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ case ${generic_target} in
*-*-solaris*) fmt=elf em=solaris ;;
*-*-aros*) fmt=elf em=linux ;;
*-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
*-*-zephyr*) fmt=elf ;;
esac

case ${cpu_type} in
Expand Down
4 changes: 4 additions & 0 deletions ld/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2021-07-12 Stephanos Ioannidis <[email protected]>

* configure.tgt: Add support for Zephyr RTOS.

2020-07-24 Nick Clifton <[email protected]>

2.35 Release:
Expand Down
13 changes: 7 additions & 6 deletions ld/configure.tgt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ case "${targ}" in
aarch64_be-*-elf) targ_emul=aarch64elfb
targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b armelfb armelf"
;;
aarch64-*-elf | aarch64-*-rtems*)
aarch64-*-elf | aarch64-*-rtems* | aarch64-*-zephyr*)
targ_emul=aarch64elf
targ_extra_emuls="aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb"
;;
Expand Down Expand Up @@ -104,7 +104,8 @@ alpha*-*-*vms*) targ_emul=alphavms
;;
am33_2.0-*-linux*) targ_emul=elf32am33lin # mn10300 variant
;;
arc*-*-elf*) targ_emul=arcelf
arc*-*-elf* | arc*-*-zephyr*)
targ_emul=arcelf
targ_extra_emuls="arclinux arclinux_nps arcv2elf arcv2elfx"
;;
arc*-*-linux*) case "${with_cpu}" in
Expand Down Expand Up @@ -148,7 +149,7 @@ arm-*-phoenix*) targ_emul=armelf
armeb-*-elf | armeb-*-eabi*)
targ_emul=armelfb
;;
arm-*-elf | arm*-*-eabi* | arm-*-rtems*)
arm-*-elf | arm*-*-eabi* | arm-*-rtems* | arm-*-zephyr*)
targ_emul=armelf
;;
arm*-*-symbianelf*) targ_emul=armsymbian;;
Expand Down Expand Up @@ -354,7 +355,7 @@ i[3-7]86-*-netbsdpe*) targ_emul=i386pe
i[3-7]86-*-elfiamcu) targ_emul=elf_iamcu
targ_extra_emuls=elf_i386
;;
i[3-7]86-*-elf* | i[3-7]86-*-rtems*)
i[3-7]86-*-elf* | i[3-7]86-*-rtems* | i[3-7]86-*-zephyr*)
targ_emul=elf_i386
targ_extra_emuls=elf_iamcu
;;
Expand Down Expand Up @@ -520,7 +521,7 @@ mips*el-ps2-elf*) targ_emul=elf32lr5900
;;
mips*el-*-elf*) targ_emul=elf32elmip
;;
mips*-*-elf* | mips*-*-rtems*)
mips*-*-elf* | mips*-*-rtems* | mips*-*-zephyr*)
targ_emul=elf32ebmip
;;
mips*el-*-vxworks*) targ_emul=elf32elmipvxworks
Expand Down Expand Up @@ -954,7 +955,7 @@ x86_64-*-netbsd* | x86_64-*-openbsd*)
sed -e 's/netbsd/netbsdelf/'`;;
esac
;;
x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia*)
x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia* | x86_64-*-zephyr*)
targ_emul=elf_x86_64
targ_extra_emuls="elf_i386 elf_iamcu elf32_x86_64 elf_l1om elf_k1om"
targ_extra_libpath="elf_i386 elf_iamcu elf32_x86_64 elf_l1om elf_k1om"
Expand Down

0 comments on commit 297cdf0

Please sign in to comment.