* [PATCH 4/5] Move RTEMS target configuration to ELF sections
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
2017-01-19 12:42 ` [PATCH 2/5] gas: Use ARM EABI for RTEMS Sebastian Huber
2017-01-19 12:42 ` [PATCH 3/5] gas: Default to ELF for RTEMS targets Sebastian Huber
@ 2017-01-19 12:42 ` Sebastian Huber
2017-01-19 15:41 ` Joel Sherrill
2017-01-19 12:42 ` [PATCH 5/5] Remove all RTEMS a.out targets Sebastian Huber
` (2 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Sebastian Huber @ 2017-01-19 12:42 UTC (permalink / raw)
To: binutils; +Cc: Sebastian Huber
bfd/
* config.bfd (powerpcle-*-rtems*): Do not mark as removed.
(arm-*-rtems*): Move to (arm*-*-eabi*).
(i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
(m68-*-rtems*): Move to (m68*-*-elf*).
ld/
* configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
(bfin-*-rtems*): Move to (bfin*-*-elf*).
(i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
(m68*-*-rtems*): Move to (m68*-*-elf*).
(mips*-*-rtems*): Move to (mips*-*-elf*).
(or1k*-*-rtems*): Move to (or1k*-*-elf*).
(powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
(sparc*-*-rtems*): Move to (sparc*-*-elf*).
(sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
---
bfd/config.bfd | 19 +++----------------
ld/configure.tgt | 40 ++++++++++++++++------------------------
2 files changed, 19 insertions(+), 40 deletions(-)
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 949478f..48133e8 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -144,7 +144,6 @@ case $targ in
m68*-bull-sysv* | \
maxq-*-coff | \
mips*el-*-rtems* | \
- powerpcle-*-rtems* | \
sparc*-*-rtemsaout* | \
sparc-*-lynxos* | \
vax-*-vms* | \
@@ -434,10 +433,6 @@ case "${targ}" in
targ_defvec=arm_elf32_le_vec
targ_selvecs=arm_elf32_be_vec
;;
- arm-*-rtems*)
- targ_defvec=arm_elf32_le_vec
- targ_selvecs=arm_elf32_be_vec
- ;;
armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
targ_defvec=arm_elf32_be_vec
targ_selvecs=arm_elf32_le_vec
@@ -448,7 +443,7 @@ case "${targ}" in
;;
arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
- arm*-*-eabi* )
+ arm*-*-eabi* | arm-*-rtems*)
targ_defvec=arm_elf32_le_vec
targ_selvecs=arm_elf32_be_vec
;;
@@ -629,7 +624,7 @@ case "${targ}" in
;;
i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
i[3-7]86-*-elf* | i[3-7]86-*-sco3.2v5* | \
- i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
+ i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | i[3-7]86-*-rtems*)
targ_defvec=i386_elf32_vec
targ_selvecs="iamcu_elf32_vec i386_coff_vec"
;;
@@ -675,10 +670,6 @@ case "${targ}" in
i[3-7]86-*-aix*)
targ_defvec=i386_coff_vec
;;
- i[3-7]86-*-rtems*)
- targ_defvec=i386_elf32_vec
- targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_aout_vec"
- ;;
i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
targ_defvec=i386_mach_o_vec
targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
@@ -976,14 +967,10 @@ case "${targ}" in
targ_selvecs="core_cisco_be_vec ieee_vec"
targ_underscore=yes
;;
- m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
+ m68*-*-elf* | m68*-*-sysv4* | m68*-*-rtems* | m68*-*-uclinux*)
targ_defvec=m68k_elf32_vec
targ_selvecs="m68k_coff_vec ieee_vec"
;;
- m68*-*-rtems*)
- targ_defvec=m68k_elf32_vec
- targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec"
- ;;
m68*-*-coff* | m68*-*-sysv*)
targ_defvec=m68k_coff_vec
targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec"
diff --git a/ld/configure.tgt b/ld/configure.tgt
index bb86d56..5a68083 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -106,10 +106,9 @@ arm-*-netbsd*) targ_emul=armnbsd;
arm-*-nto*) targ_emul=armnto ;;
arm-*-openbsd*) targ_emul=armnbsd ;;
arm-*-phoenix*) targ_emul=armelf ;;
-arm-*-rtems*) targ_emul=armelf ;;
armeb-*-elf | armeb-*-eabi*)
targ_emul=armelfb ;;
-arm-*-elf | arm*-*-eabi*)
+arm-*-elf | arm*-*-eabi* | arm-*-rtems*)
targ_emul=armelf ;;
arm*-*-symbianelf*) targ_emul=armsymbian;;
arm-*-kaos*) targ_emul=armelf ;;
@@ -158,11 +157,8 @@ arm*-*-fuchsia*) targ_emul=armelf_fuchsia
avr-*-*) targ_emul=avr2
targ_extra_emuls="avr1 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1 avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny"
;;
-bfin-*-elf) targ_emul=elf32bfin;
- targ_extra_emuls="elf32bfinfd"
- targ_extra_libpath=$targ_extra_emuls
- ;;
-bfin-*-rtems*) targ_emul=elf32bfin;
+bfin-*-elf | bfin-*-rtems*)
+ targ_emul=elf32bfin
targ_extra_emuls="elf32bfinfd"
targ_extra_libpath=$targ_extra_emuls
;;
@@ -239,8 +235,6 @@ i[3-7]86-*-sco*) targ_emul=i386coff ;;
i[3-7]86-*-isc*) targ_emul=i386coff ;;
i[3-7]86-*-lynxos*) targ_emul=i386lynx ;;
i[3-7]86-*-coff) targ_emul=i386coff ;;
-i[3-7]86-*-rtems*) targ_emul=elf_i386
- targ_extra_emuls=elf_iamcu ;;
i[3-7]86-*-aros*) targ_emul=elf_i386
targ_extra_emuls=elf_iamcu ;;
i[3-7]86-*-rdos*) targ_emul=elf_i386
@@ -323,7 +317,8 @@ x86_64-*-netbsd*) targ_emul=elf_x86_64
i[3-7]86-*-netware) targ_emul=i386nw ;;
i[3-7]86-*-elfiamcu) targ_emul=elf_iamcu
targ_extra_emuls=elf_i386 ;;
-i[3-7]86-*-elf*) targ_emul=elf_i386
+i[3-7]86-*-elf* | i[3-7]86-*-rtems*)
+ targ_emul=elf_i386
targ_extra_emuls=elf_iamcu ;;
x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia*)
targ_emul=elf_x86_64
@@ -444,7 +439,8 @@ m68k-hp-bsd*) targ_emul=hp300bsd ;;
m68*-motorola-sysv*) targ_emul=delta68 ;;
m68*-*-aout) targ_emul=m68kaout ;;
m68*-*-coff) targ_emul=m68kcoff ;;
-m68*-*-elf) targ_emul=m68kelf ;;
+m68*-*-elf | m68*-*-rtems*)
+ targ_emul=m68kelf ;;
m68*-*-hpux*) targ_emul=hp3hpux ;;
m68k-*-linux*aout*) targ_emul=m68klinux
targ_extra_emuls=m68kelf
@@ -462,8 +458,6 @@ m68*-*-netbsdaout* | m68*-*-netbsd*)
targ_emul=m68knbsd
targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
m68*-*-psos*) targ_emul=m68kpsos ;;
-m68*-*-rtems*) targ_emul=m68kelf
- ;;
m8*-*-*) targ_emul=m88kbcs
;;
mcore-*-pe) targ_emul=mcorepe ;
@@ -513,8 +507,8 @@ mips*el-ps2-elf*) targ_emul=elf32lr5900
targ_extra_emuls="elf32lr5900n32"
targ_extra_libpath=$targ_extra_emuls ;;
mips*el-*-elf*) targ_emul=elf32elmip ;;
-mips*-*-elf*) targ_emul=elf32ebmip ;;
-mips*-*-rtems*) targ_emul=elf32ebmip ;;
+mips*-*-elf* | mips*-*-rtems*)
+ targ_emul=elf32ebmip ;;
mips*el-*-vxworks*) targ_emul=elf32elmipvxworks
targ_extra_emuls="elf32ebmipvxworks" ;;
mips*-*-vxworks*) targ_emul=elf32ebmipvxworks
@@ -575,10 +569,9 @@ nios2*-*-*) targ_emul=nios2elf ;;
ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd
;;
-or1k-*-elf | or1knd-*-elf) targ_emul=elf32or1k ;;
+or1k-*-elf | or1knd-*-elf | or1k-*-rtems* | or1knd-*-rtems*)
+ targ_emul=elf32or1k ;;
or1k-*-linux* | or1knd-*-linux*) targ_emul=elf32or1k_linux ;;
-or1k-*-rtems* | or1knd-*-rtems*) targ_emul=elf32or1k
- ;;
pdp11-*-*) targ_emul=pdp11
;;
pjl*-*-*) targ_emul=pjlelf
@@ -602,6 +595,7 @@ powerpc-*-vxworks*)
targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;;
powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
| powerpc*-*-linux* | powerpc*-*-netbsd* | powerpc*-*-openbsd* \
+ | powerpc*-*-rtems* \
| powerpc*-*-solaris* | powerpc*-*-kaos* | powerpc*-*-vxworks*)
case "${targ}" in
powerpc64*)
@@ -675,7 +669,6 @@ powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
;;
powerpc-*-nto*) targ_emul=elf32ppcnto ;;
powerpcle-*-nto*) targ_emul=elf32lppcnto ;;
-powerpc-*-rtems*) targ_emul=elf32ppc ;;
powerpc-*-macos*) targ_emul=ppcmacos ;;
powerpc-*-netware*) targ_emul=ppcnw ;;
powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
@@ -759,15 +752,16 @@ sh64-*-elf*) targ_emul=shelf
targ_extra_emuls="shlelf shelf32 shlelf32 shelf64 shlelf64"
targ_extra_libpath=$targ_extra_emuls ;;
sparc64-*-aout*) targ_emul=sparcaout ;;
-sparc64-*-elf*) targ_emul=elf64_sparc ;;
-sparc64-*-rtems*) targ_emul=elf64_sparc ;;
+sparc64-*-elf* | sparc64-*-rtems*)
+ targ_emul=elf64_sparc ;;
sparc-sun-sunos4*) targ_emul=sun4 ;;
sparclite*-*-elf) targ_emul=elf32_sparc ;;
sparclite*-*-coff) targ_emul=coff_sparc ;;
sparclite*-fujitsu-*) targ_emul=sparcaout ;;
sparc*-*-aout) targ_emul=sparcaout ;;
sparc*-*-coff) targ_emul=coff_sparc ;;
-sparc*-*-elf) targ_emul=elf32_sparc ;;
+sparc*-*-elf | sparc-*-rtems*)
+ targ_emul=elf32_sparc ;;
sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
sparc*-*-vxworks*) targ_emul=elf32_sparc_vxworks ;;
sparc64-*-freebsd* | sparcv9-*-freebsd* | sparc64-*-kfreebsd*-gnu | sparcv9-*-kfreebsd*-gnu)
@@ -810,8 +804,6 @@ sparcv9-*-solaris2* | sparc64-*-solaris2*)
tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` ;;
sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
-sparc-*-rtems*) targ_emul=elf32_sparc
- ;;
spu-*-elf*) targ_emul=elf32_spu ;;
tic30-*-*aout*) targ_emul=tic30aout ;;
tic30-*-*coff*) targ_emul=tic30coff ;;
--
1.8.4.5
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 3/5] gas: Default to ELF for RTEMS targets
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
2017-01-19 12:42 ` [PATCH 2/5] gas: Use ARM EABI for RTEMS Sebastian Huber
@ 2017-01-19 12:42 ` Sebastian Huber
2017-01-19 15:39 ` Joel Sherrill
2017-01-19 12:42 ` [PATCH 4/5] Move RTEMS target configuration to ELF sections Sebastian Huber
` (3 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Sebastian Huber @ 2017-01-19 12:42 UTC (permalink / raw)
To: binutils; +Cc: Sebastian Huber
gas/
* configure.tgt (aarch64*-*-rtems*): Remove.
(bfin-*-rtems*): Likewise.
(h8300-*-rtems*): Likewise.
(i386-*-rtems*): Likewise.
(m32c-*-rtems*): Likewise.
(m32r-*-rtems*): Likewise.
(m68k-*-rtems*): Likewise.
(mips-*-rtems*): Likewise.
(nios2-*-rtems*): Likewise.
(ppc-*-rtems*): Likewise.
(sh-*-rtems*): Likewise.
(sparc64-*-rtems*): Likewise.
(sparc-*-rtems*): Likewise.
(*-*-rtems*) Use ELF format.
---
gas/configure.tgt | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 95c4a13..c3b352b 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -122,7 +122,7 @@ esac
generic_target=${cpu_type}-$vendor-$os
# Note: This table is alpha-sorted, please try to keep it that way.
case ${generic_target} in
- aarch64*-*-elf | aarch64*-*-rtems*) fmt=elf;;
+ aarch64*-*-elf*) fmt=elf;;
aarch64*-*-fuchsia*) fmt=elf;;
aarch64*-*-linux*) fmt=elf em=linux ;;
@@ -167,7 +167,6 @@ case ${generic_target} in
bfin-*-linux-uclibc) fmt=fdpicelf em=linux ;;
bfin-*-uclinux*) fmt=elf em=linux ;;
- bfin-*-rtems*) fmt=elf ;;
bfin-*elf) fmt=elf ;;
cr16-*-elf*) fmt=elf ;;
@@ -210,7 +209,7 @@ case ${generic_target} in
hppa-*-bsd*) fmt=som em=hppa ;;
hppa-*-hiux*) fmt=som em=hppa ;;
- h8300-*-elf | h8300-*-rtems*) fmt=elf ;;
+ h8300-*-elf) fmt=elf ;;
h8300-*-linux*) fmt=elf em=linux ;;
i370-*-elf* | i370-*-linux*) fmt=elf ;;
@@ -266,7 +265,6 @@ case ${generic_target} in
i386-*-vsta) fmt=aout ;;
i386-*-msdosdjgpp* \
| i386-*-go32*) fmt=coff em=go32 ;;
- i386-*-rtems*) fmt=elf ;;
i386-*-gnu*) fmt=elf em=gnu ;;
i386-*-mach*) fmt=aout em=mach ;;
i386-*-msdos*) fmt=aout ;;
@@ -306,9 +304,9 @@ case ${generic_target} in
lm32-*-*) fmt=elf ;;
- m32c-*-elf | m32c-*-rtems*) fmt=elf ;;
+ m32c-*-elf) fmt=elf ;;
- m32r-*-elf* | m32r-*-rtems*) fmt=elf ;;
+ m32r-*-elf*) fmt=elf ;;
m32r-*-linux*) fmt=elf em=linux;;
m68hc11-*-* | m6811-*-*) fmt=elf ;;
@@ -317,7 +315,6 @@ case ${generic_target} in
m68k-*-aout) fmt=aout bfd_gas=yes ;;
m68k-*-elf*) fmt=elf ;;
m68k-*-sysv4*) fmt=elf em=svr4 ;;
- m68k-*-rtems*) fmt=elf ;;
m68k-*-linux-*) fmt=elf em=linux ;;
m68k-*-uclinux*) fmt=elf em=uclinux ;;
m68k-*-gnu*) fmt=elf ;;
@@ -344,7 +341,7 @@ case ${generic_target} in
mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
fmt=elf em=tmips ;;
- mips-*-elf* | mips-*-rtems*) fmt=elf ;;
+ mips-*-elf*) fmt=elf ;;
mips-*-netbsd*) fmt=elf em=tmips ;;
mips-*-openbsd*) fmt=elf em=tmips ;;
@@ -367,7 +364,6 @@ case ${generic_target} in
nds32-*-elf*) fmt=elf ;;
nds32-*-linux*) fmt=elf em=linux ;;
- nios2-*-rtems*) fmt=elf ;;
nios2*-linux*) fmt=elf em=linux ;;
ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
@@ -390,7 +386,6 @@ case ${generic_target} in
ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
ppc-*-linux-*) fmt=elf em=linux ;;
ppc-*-solaris*) fmt=elf em=solaris ;;
- ppc-*-rtems*) fmt=elf ;;
ppc-*-macos*) fmt=coff em=macos ;;
ppc-*-nto*) fmt=elf ;;
ppc-*-kaos*) fmt=elf ;;
@@ -423,13 +418,10 @@ case ${generic_target} in
sh-*-coff*) fmt=coff ;;
sh-*-nto*) fmt=elf ;;
sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
- sh-*-rtems*) fmt=elf ;;
sh-*-kaos*) fmt=elf ;;
shle*-*-kaos*) fmt=elf ;;
sh64-*-elf*) fmt=elf ;;
- sparc64-*-rtems*) fmt=elf ;;
- sparc-*-rtems*) fmt=elf ;;
sparc-*-sunos4*) fmt=aout em=sun3 ;;
sparc-*-aout) fmt=aout em=sparcaout ;;
sparc-*-coff) fmt=coff ;;
@@ -488,7 +480,7 @@ case ${generic_target} in
*-*-generic) fmt=generic ;;
*-*-xray | *-*-hms) fmt=coff ;;
*-*-sim) fmt=coff ;;
- *-*-elf | *-*-sysv4*) fmt=elf ;;
+ *-*-elf | *-*-rtems* | *-*-sysv4*) fmt=elf ;;
*-*-solaris*) fmt=elf em=solaris ;;
*-*-aros*) fmt=elf em=linux ;;
*-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
--
1.8.4.5
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 2/5] gas: Use ARM EABI for RTEMS
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
@ 2017-01-19 12:42 ` Sebastian Huber
2017-01-19 15:35 ` Joel Sherrill
2017-01-19 12:42 ` [PATCH 3/5] gas: Default to ELF for RTEMS targets Sebastian Huber
` (4 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Sebastian Huber @ 2017-01-19 12:42 UTC (permalink / raw)
To: binutils; +Cc: Sebastian Huber
gas/
* configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
---
gas/configure.tgt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gas/configure.tgt b/gas/configure.tgt
index dd81ba2..95c4a13 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -138,9 +138,8 @@ case ${generic_target} in
arm-*-aout) fmt=aout ;;
arm-*-coff) fmt=coff ;;
arm-*-phoenix*) fmt=elf ;;
- arm-*-rtems*) fmt=elf ;;
arm-*-elf) fmt=elf ;;
- arm-*-eabi*) fmt=elf em=armeabi ;;
+ arm-*-eabi* | arm-*-rtems*) fmt=elf em=armeabi ;;
arm-*-symbianelf*) fmt=elf em=symbian ;;
arm-*-kaos*) fmt=elf ;;
arm-*-conix*) fmt=elf ;;
--
1.8.4.5
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 5/5] Remove all RTEMS a.out targets
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
` (2 preceding siblings ...)
2017-01-19 12:42 ` [PATCH 4/5] Move RTEMS target configuration to ELF sections Sebastian Huber
@ 2017-01-19 12:42 ` Sebastian Huber
2017-01-19 15:43 ` Joel Sherrill
2017-01-19 15:31 ` [PATCH 1/5] Remove all RTEMS COFF targets Joel Sherrill
2017-01-25 6:39 ` Sebastian Huber
5 siblings, 1 reply; 15+ messages in thread
From: Sebastian Huber @ 2017-01-19 12:42 UTC (permalink / raw)
To: binutils; +Cc: Sebastian Huber
bfd/
* config.bfd (*-*-rtemsaout*): Mark as removed.
---
bfd/config.bfd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 48133e8..52db9a4 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -133,6 +133,7 @@ esac
case $targ in
*-go32-rtems* | \
+ *-*-rtemsaout* | \
*-*-rtemscoff* | \
a29k-* | \
arm-*-oabi | \
@@ -144,7 +145,6 @@ case $targ in
m68*-bull-sysv* | \
maxq-*-coff | \
mips*el-*-rtems* | \
- sparc*-*-rtemsaout* | \
sparc-*-lynxos* | \
vax-*-vms* | \
null)
--
1.8.4.5
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 1/5] Remove all RTEMS COFF targets
@ 2017-01-19 12:42 Sebastian Huber
2017-01-19 12:42 ` [PATCH 2/5] gas: Use ARM EABI for RTEMS Sebastian Huber
` (5 more replies)
0 siblings, 6 replies; 15+ messages in thread
From: Sebastian Huber @ 2017-01-19 12:42 UTC (permalink / raw)
To: binutils; +Cc: Sebastian Huber
bfd/
* config.bfd (*-*-rtemscoff*): Mark as removed.
gas/
* configure.tgt (sh-*-rtemscoff*): Remove.
ld/
* configure.tgt (h8300-*-rtemscoff*): Remove.
(i960-*-rtems*): Likewise.
(m68*-*-rtemscoff*): Likewise.
(sh-*-rtemscoff*): Likewise.
---
bfd/config.bfd | 17 ++---------------
gas/configure.tgt | 1 -
ld/configure.tgt | 5 +----
3 files changed, 3 insertions(+), 20 deletions(-)
diff --git a/bfd/config.bfd b/bfd/config.bfd
index d824065..949478f 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -102,7 +102,6 @@ case $targ in
mips*-*-sysv* | mips*-*-riscos* | \
ns32k-*-* | \
sh*-*-symbianelf* | \
- sh-*-rtemscoff* | \
sparclet-*-aout* | \
sparc86x-*-aout* | \
sparc*-*-chorus* | \
@@ -134,13 +133,12 @@ esac
case $targ in
*-go32-rtems* | \
+ *-*-rtemscoff* | \
a29k-* | \
arm-*-oabi | \
hppa*-*-rtems* | \
i960-*-rtems* | \
- i[3-7]86*-*-rtemscoff* | \
m68*-*-lynxos* | \
- m68*-*-rtemscoff* | \
m68*-apollo-* | \
m68*-apple-aux* | \
m68*-bull-sysv* | \
@@ -484,7 +482,7 @@ case "${targ}" in
targ_defvec=tic30_coff_vec
;;
- c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
+ c4x-*-*coff* | tic4x-*-*coff*)
targ_defvec=tic4x_coff1_vec
targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
targ_underscore=yes
@@ -562,11 +560,6 @@ case "${targ}" in
targ_defvec=moxie_elf32_le_vec
;;
- h8300*-*-rtemscoff*)
- targ_defvec=h8300_coff_vec
- targ_underscore=yes
- ;;
-
h8300*-*-elf | h8300*-*-rtems*)
targ_defvec=h8300_elf32_vec
targ_underscore=yes
@@ -1599,12 +1592,6 @@ case "${targ}" in
;;
#endif
- sh-*-rtemscoff*)
- targ_defvec=sh_coff_vec
- targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
- targ_underscore=yes
- ;;
-
#ifdef BFD64
sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
targ_defvec=sh_elf32_vec
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 9760b18..dd81ba2 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -424,7 +424,6 @@ case ${generic_target} in
sh-*-coff*) fmt=coff ;;
sh-*-nto*) fmt=elf ;;
sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
- sh-*-rtemscoff*) fmt=coff ;;
sh-*-rtems*) fmt=elf ;;
sh-*-kaos*) fmt=elf ;;
shle*-*-kaos*) fmt=elf ;;
diff --git a/ld/configure.tgt b/ld/configure.tgt
index f373ee5..bb86d56 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -208,7 +208,7 @@ moxie-*-moxiebox*) targ_emul=moxiebox
;;
moxie-*-*) targ_emul=elf32moxie
;;
-h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
+h8300-*-hms* | h8300-*-coff*)
targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn" ;;
h8300-*-elf* | h8300-*-rtems*)
targ_emul=h8300elf;
@@ -404,7 +404,6 @@ i960-wrs-vxworks5*) targ_emul=gld960coff ;;
i960-wrs-vxworks*) targ_emul=gld960 ;;
i960-*-coff) targ_emul=gld960coff ;;
i960-intel-nindy) targ_emul=gld960 ;;
-i960-*-rtems*) targ_emul=gld960coff ;;
i960-*-elf*) targ_emul=elf32_i960
;;
ia64-*-elf*) targ_emul=elf64_ia64 ;;
@@ -463,7 +462,6 @@ m68*-*-netbsdaout* | m68*-*-netbsd*)
targ_emul=m68knbsd
targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
m68*-*-psos*) targ_emul=m68kpsos ;;
-m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
m68*-*-rtems*) targ_emul=m68kelf
;;
m8*-*-*) targ_emul=m88kbcs
@@ -741,7 +739,6 @@ sh*-*-symbianelf*) targ_emul=shlsymbian ;;
shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
targ_emul=shlelf
targ_extra_emuls="shelf shl sh" ;;
-sh-*-rtemscoff*) targ_emul=sh; targ_extra_emuls=shl ;;
sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos*)
targ_emul=shelf
targ_extra_emuls="shlelf sh shl" ;;
--
1.8.4.5
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/5] Remove all RTEMS COFF targets
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
` (3 preceding siblings ...)
2017-01-19 12:42 ` [PATCH 5/5] Remove all RTEMS a.out targets Sebastian Huber
@ 2017-01-19 15:31 ` Joel Sherrill
2017-01-25 6:39 ` Sebastian Huber
5 siblings, 0 replies; 15+ messages in thread
From: Joel Sherrill @ 2017-01-19 15:31 UTC (permalink / raw)
To: Sebastian Huber, binutils
All RTEMS targets are currently ELF. It is OK
to remove all of these.
--joel
On 1/19/2017 6:42 AM, Sebastian Huber wrote:
> bfd/
> * config.bfd (*-*-rtemscoff*): Mark as removed.
>
> gas/
> * configure.tgt (sh-*-rtemscoff*): Remove.
>
> ld/
> * configure.tgt (h8300-*-rtemscoff*): Remove.
> (i960-*-rtems*): Likewise.
> (m68*-*-rtemscoff*): Likewise.
> (sh-*-rtemscoff*): Likewise.
> ---
> bfd/config.bfd | 17 ++---------------
> gas/configure.tgt | 1 -
> ld/configure.tgt | 5 +----
> 3 files changed, 3 insertions(+), 20 deletions(-)
>
> diff --git a/bfd/config.bfd b/bfd/config.bfd
> index d824065..949478f 100644
> --- a/bfd/config.bfd
> +++ b/bfd/config.bfd
> @@ -102,7 +102,6 @@ case $targ in
> mips*-*-sysv* | mips*-*-riscos* | \
> ns32k-*-* | \
> sh*-*-symbianelf* | \
> - sh-*-rtemscoff* | \
> sparclet-*-aout* | \
> sparc86x-*-aout* | \
> sparc*-*-chorus* | \
> @@ -134,13 +133,12 @@ esac
>
> case $targ in
> *-go32-rtems* | \
> + *-*-rtemscoff* | \
> a29k-* | \
> arm-*-oabi | \
> hppa*-*-rtems* | \
> i960-*-rtems* | \
> - i[3-7]86*-*-rtemscoff* | \
> m68*-*-lynxos* | \
> - m68*-*-rtemscoff* | \
> m68*-apollo-* | \
> m68*-apple-aux* | \
> m68*-bull-sysv* | \
> @@ -484,7 +482,7 @@ case "${targ}" in
> targ_defvec=tic30_coff_vec
> ;;
>
> - c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
> + c4x-*-*coff* | tic4x-*-*coff*)
> targ_defvec=tic4x_coff1_vec
> targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
> targ_underscore=yes
> @@ -562,11 +560,6 @@ case "${targ}" in
> targ_defvec=moxie_elf32_le_vec
> ;;
>
> - h8300*-*-rtemscoff*)
> - targ_defvec=h8300_coff_vec
> - targ_underscore=yes
> - ;;
> -
> h8300*-*-elf | h8300*-*-rtems*)
> targ_defvec=h8300_elf32_vec
> targ_underscore=yes
> @@ -1599,12 +1592,6 @@ case "${targ}" in
> ;;
> #endif
>
> - sh-*-rtemscoff*)
> - targ_defvec=sh_coff_vec
> - targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
> - targ_underscore=yes
> - ;;
> -
> #ifdef BFD64
> sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
> targ_defvec=sh_elf32_vec
> diff --git a/gas/configure.tgt b/gas/configure.tgt
> index 9760b18..dd81ba2 100644
> --- a/gas/configure.tgt
> +++ b/gas/configure.tgt
> @@ -424,7 +424,6 @@ case ${generic_target} in
> sh-*-coff*) fmt=coff ;;
> sh-*-nto*) fmt=elf ;;
> sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
> - sh-*-rtemscoff*) fmt=coff ;;
> sh-*-rtems*) fmt=elf ;;
> sh-*-kaos*) fmt=elf ;;
> shle*-*-kaos*) fmt=elf ;;
> diff --git a/ld/configure.tgt b/ld/configure.tgt
> index f373ee5..bb86d56 100644
> --- a/ld/configure.tgt
> +++ b/ld/configure.tgt
> @@ -208,7 +208,7 @@ moxie-*-moxiebox*) targ_emul=moxiebox
> ;;
> moxie-*-*) targ_emul=elf32moxie
> ;;
> -h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
> +h8300-*-hms* | h8300-*-coff*)
> targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn" ;;
> h8300-*-elf* | h8300-*-rtems*)
> targ_emul=h8300elf;
> @@ -404,7 +404,6 @@ i960-wrs-vxworks5*) targ_emul=gld960coff ;;
> i960-wrs-vxworks*) targ_emul=gld960 ;;
> i960-*-coff) targ_emul=gld960coff ;;
> i960-intel-nindy) targ_emul=gld960 ;;
> -i960-*-rtems*) targ_emul=gld960coff ;;
> i960-*-elf*) targ_emul=elf32_i960
> ;;
> ia64-*-elf*) targ_emul=elf64_ia64 ;;
> @@ -463,7 +462,6 @@ m68*-*-netbsdaout* | m68*-*-netbsd*)
> targ_emul=m68knbsd
> targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
> m68*-*-psos*) targ_emul=m68kpsos ;;
> -m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
> m68*-*-rtems*) targ_emul=m68kelf
> ;;
> m8*-*-*) targ_emul=m88kbcs
> @@ -741,7 +739,6 @@ sh*-*-symbianelf*) targ_emul=shlsymbian ;;
> shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
> targ_emul=shlelf
> targ_extra_emuls="shelf shl sh" ;;
> -sh-*-rtemscoff*) targ_emul=sh; targ_extra_emuls=shl ;;
> sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos*)
> targ_emul=shelf
> targ_extra_emuls="shlelf sh shl" ;;
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/5] gas: Use ARM EABI for RTEMS
2017-01-19 12:42 ` [PATCH 2/5] gas: Use ARM EABI for RTEMS Sebastian Huber
@ 2017-01-19 15:35 ` Joel Sherrill
0 siblings, 0 replies; 15+ messages in thread
From: Joel Sherrill @ 2017-01-19 15:35 UTC (permalink / raw)
To: Sebastian Huber, binutils
This is OK.
--joel
On 1/19/2017 6:42 AM, Sebastian Huber wrote:
> gas/
> * configure.tgt (arm-*-rtems*): Move to (arm-*-eabi*).
> ---
> gas/configure.tgt | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/gas/configure.tgt b/gas/configure.tgt
> index dd81ba2..95c4a13 100644
> --- a/gas/configure.tgt
> +++ b/gas/configure.tgt
> @@ -138,9 +138,8 @@ case ${generic_target} in
> arm-*-aout) fmt=aout ;;
> arm-*-coff) fmt=coff ;;
> arm-*-phoenix*) fmt=elf ;;
> - arm-*-rtems*) fmt=elf ;;
> arm-*-elf) fmt=elf ;;
> - arm-*-eabi*) fmt=elf em=armeabi ;;
> + arm-*-eabi* | arm-*-rtems*) fmt=elf em=armeabi ;;
> arm-*-symbianelf*) fmt=elf em=symbian ;;
> arm-*-kaos*) fmt=elf ;;
> arm-*-conix*) fmt=elf ;;
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 3/5] gas: Default to ELF for RTEMS targets
2017-01-19 12:42 ` [PATCH 3/5] gas: Default to ELF for RTEMS targets Sebastian Huber
@ 2017-01-19 15:39 ` Joel Sherrill
2017-01-19 22:55 ` Alan Modra
0 siblings, 1 reply; 15+ messages in thread
From: Joel Sherrill @ 2017-01-19 15:39 UTC (permalink / raw)
To: Sebastian Huber, binutils
One of the reasons this was duplicated was to ensure
that when someone tinkered with a target they knew
XXX-rtems was impacted. With this patch, there is
no record of each cpu-rtems being a used target.
I know binutils doesn't remove targets often but this
makes the individual RTEMS targets invisible.
It definitely means we likely don't have to touch
these files for new targets but it also means
we aren't obvious when deprecation discussions
occur.
It would be nice to have a binutils maintainer wade
in. I can see how this is a nice clean up patch but
it loses information. What are the thoughts on this?
Except for the loss of documentation issue, I am
OK with it.
--joel
On 1/19/2017 6:42 AM, Sebastian Huber wrote:
> gas/
> * configure.tgt (aarch64*-*-rtems*): Remove.
> (bfin-*-rtems*): Likewise.
> (h8300-*-rtems*): Likewise.
> (i386-*-rtems*): Likewise.
> (m32c-*-rtems*): Likewise.
> (m32r-*-rtems*): Likewise.
> (m68k-*-rtems*): Likewise.
> (mips-*-rtems*): Likewise.
> (nios2-*-rtems*): Likewise.
> (ppc-*-rtems*): Likewise.
> (sh-*-rtems*): Likewise.
> (sparc64-*-rtems*): Likewise.
> (sparc-*-rtems*): Likewise.
> (*-*-rtems*) Use ELF format.
> ---
> gas/configure.tgt | 20 ++++++--------------
> 1 file changed, 6 insertions(+), 14 deletions(-)
>
> diff --git a/gas/configure.tgt b/gas/configure.tgt
> index 95c4a13..c3b352b 100644
> --- a/gas/configure.tgt
> +++ b/gas/configure.tgt
> @@ -122,7 +122,7 @@ esac
> generic_target=${cpu_type}-$vendor-$os
> # Note: This table is alpha-sorted, please try to keep it that way.
> case ${generic_target} in
> - aarch64*-*-elf | aarch64*-*-rtems*) fmt=elf;;
> + aarch64*-*-elf*) fmt=elf;;
> aarch64*-*-fuchsia*) fmt=elf;;
> aarch64*-*-linux*) fmt=elf em=linux ;;
>
> @@ -167,7 +167,6 @@ case ${generic_target} in
>
> bfin-*-linux-uclibc) fmt=fdpicelf em=linux ;;
> bfin-*-uclinux*) fmt=elf em=linux ;;
> - bfin-*-rtems*) fmt=elf ;;
> bfin-*elf) fmt=elf ;;
>
> cr16-*-elf*) fmt=elf ;;
> @@ -210,7 +209,7 @@ case ${generic_target} in
> hppa-*-bsd*) fmt=som em=hppa ;;
> hppa-*-hiux*) fmt=som em=hppa ;;
>
> - h8300-*-elf | h8300-*-rtems*) fmt=elf ;;
> + h8300-*-elf) fmt=elf ;;
> h8300-*-linux*) fmt=elf em=linux ;;
>
> i370-*-elf* | i370-*-linux*) fmt=elf ;;
> @@ -266,7 +265,6 @@ case ${generic_target} in
> i386-*-vsta) fmt=aout ;;
> i386-*-msdosdjgpp* \
> | i386-*-go32*) fmt=coff em=go32 ;;
> - i386-*-rtems*) fmt=elf ;;
> i386-*-gnu*) fmt=elf em=gnu ;;
> i386-*-mach*) fmt=aout em=mach ;;
> i386-*-msdos*) fmt=aout ;;
> @@ -306,9 +304,9 @@ case ${generic_target} in
>
> lm32-*-*) fmt=elf ;;
>
> - m32c-*-elf | m32c-*-rtems*) fmt=elf ;;
> + m32c-*-elf) fmt=elf ;;
>
> - m32r-*-elf* | m32r-*-rtems*) fmt=elf ;;
> + m32r-*-elf*) fmt=elf ;;
> m32r-*-linux*) fmt=elf em=linux;;
>
> m68hc11-*-* | m6811-*-*) fmt=elf ;;
> @@ -317,7 +315,6 @@ case ${generic_target} in
> m68k-*-aout) fmt=aout bfd_gas=yes ;;
> m68k-*-elf*) fmt=elf ;;
> m68k-*-sysv4*) fmt=elf em=svr4 ;;
> - m68k-*-rtems*) fmt=elf ;;
> m68k-*-linux-*) fmt=elf em=linux ;;
> m68k-*-uclinux*) fmt=elf em=uclinux ;;
> m68k-*-gnu*) fmt=elf ;;
> @@ -344,7 +341,7 @@ case ${generic_target} in
> mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
> mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
> fmt=elf em=tmips ;;
> - mips-*-elf* | mips-*-rtems*) fmt=elf ;;
> + mips-*-elf*) fmt=elf ;;
> mips-*-netbsd*) fmt=elf em=tmips ;;
> mips-*-openbsd*) fmt=elf em=tmips ;;
>
> @@ -367,7 +364,6 @@ case ${generic_target} in
> nds32-*-elf*) fmt=elf ;;
> nds32-*-linux*) fmt=elf em=linux ;;
>
> - nios2-*-rtems*) fmt=elf ;;
> nios2*-linux*) fmt=elf em=linux ;;
>
> ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
> @@ -390,7 +386,6 @@ case ${generic_target} in
> ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
> ppc-*-linux-*) fmt=elf em=linux ;;
> ppc-*-solaris*) fmt=elf em=solaris ;;
> - ppc-*-rtems*) fmt=elf ;;
> ppc-*-macos*) fmt=coff em=macos ;;
> ppc-*-nto*) fmt=elf ;;
> ppc-*-kaos*) fmt=elf ;;
> @@ -423,13 +418,10 @@ case ${generic_target} in
> sh-*-coff*) fmt=coff ;;
> sh-*-nto*) fmt=elf ;;
> sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
> - sh-*-rtems*) fmt=elf ;;
> sh-*-kaos*) fmt=elf ;;
> shle*-*-kaos*) fmt=elf ;;
> sh64-*-elf*) fmt=elf ;;
>
> - sparc64-*-rtems*) fmt=elf ;;
> - sparc-*-rtems*) fmt=elf ;;
> sparc-*-sunos4*) fmt=aout em=sun3 ;;
> sparc-*-aout) fmt=aout em=sparcaout ;;
> sparc-*-coff) fmt=coff ;;
> @@ -488,7 +480,7 @@ case ${generic_target} in
> *-*-generic) fmt=generic ;;
> *-*-xray | *-*-hms) fmt=coff ;;
> *-*-sim) fmt=coff ;;
> - *-*-elf | *-*-sysv4*) fmt=elf ;;
> + *-*-elf | *-*-rtems* | *-*-sysv4*) fmt=elf ;;
> *-*-solaris*) fmt=elf em=solaris ;;
> *-*-aros*) fmt=elf em=linux ;;
> *-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
>
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 4/5] Move RTEMS target configuration to ELF sections
2017-01-19 12:42 ` [PATCH 4/5] Move RTEMS target configuration to ELF sections Sebastian Huber
@ 2017-01-19 15:41 ` Joel Sherrill
0 siblings, 0 replies; 15+ messages in thread
From: Joel Sherrill @ 2017-01-19 15:41 UTC (permalink / raw)
To: Sebastian Huber, binutils
This looks OK. The RTEMS targets are staying explicitly
present. This just makes the intended similarity
moreobvious.
On 1/19/2017 6:42 AM, Sebastian Huber wrote:
> bfd/
> * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
> (arm-*-rtems*): Move to (arm*-*-eabi*).
> (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
> (m68-*-rtems*): Move to (m68*-*-elf*).
>
> ld/
> * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
> (bfin-*-rtems*): Move to (bfin*-*-elf*).
> (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
> (m68*-*-rtems*): Move to (m68*-*-elf*).
> (mips*-*-rtems*): Move to (mips*-*-elf*).
> (or1k*-*-rtems*): Move to (or1k*-*-elf*).
> (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
> (sparc*-*-rtems*): Move to (sparc*-*-elf*).
> (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
> ---
> bfd/config.bfd | 19 +++----------------
> ld/configure.tgt | 40 ++++++++++++++++------------------------
> 2 files changed, 19 insertions(+), 40 deletions(-)
>
> diff --git a/bfd/config.bfd b/bfd/config.bfd
> index 949478f..48133e8 100644
> --- a/bfd/config.bfd
> +++ b/bfd/config.bfd
> @@ -144,7 +144,6 @@ case $targ in
> m68*-bull-sysv* | \
> maxq-*-coff | \
> mips*el-*-rtems* | \
> - powerpcle-*-rtems* | \
> sparc*-*-rtemsaout* | \
> sparc-*-lynxos* | \
> vax-*-vms* | \
> @@ -434,10 +433,6 @@ case "${targ}" in
> targ_defvec=arm_elf32_le_vec
> targ_selvecs=arm_elf32_be_vec
> ;;
> - arm-*-rtems*)
> - targ_defvec=arm_elf32_le_vec
> - targ_selvecs=arm_elf32_be_vec
> - ;;
> armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
> targ_defvec=arm_elf32_be_vec
> targ_selvecs=arm_elf32_le_vec
> @@ -448,7 +443,7 @@ case "${targ}" in
> ;;
> arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
> arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
> - arm*-*-eabi* )
> + arm*-*-eabi* | arm-*-rtems*)
> targ_defvec=arm_elf32_le_vec
> targ_selvecs=arm_elf32_be_vec
> ;;
> @@ -629,7 +624,7 @@ case "${targ}" in
> ;;
> i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
> i[3-7]86-*-elf* | i[3-7]86-*-sco3.2v5* | \
> - i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
> + i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | i[3-7]86-*-rtems*)
> targ_defvec=i386_elf32_vec
> targ_selvecs="iamcu_elf32_vec i386_coff_vec"
> ;;
> @@ -675,10 +670,6 @@ case "${targ}" in
> i[3-7]86-*-aix*)
> targ_defvec=i386_coff_vec
> ;;
> - i[3-7]86-*-rtems*)
> - targ_defvec=i386_elf32_vec
> - targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_aout_vec"
> - ;;
> i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
> targ_defvec=i386_mach_o_vec
> targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
> @@ -976,14 +967,10 @@ case "${targ}" in
> targ_selvecs="core_cisco_be_vec ieee_vec"
> targ_underscore=yes
> ;;
> - m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
> + m68*-*-elf* | m68*-*-sysv4* | m68*-*-rtems* | m68*-*-uclinux*)
> targ_defvec=m68k_elf32_vec
> targ_selvecs="m68k_coff_vec ieee_vec"
> ;;
> - m68*-*-rtems*)
> - targ_defvec=m68k_elf32_vec
> - targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec"
> - ;;
> m68*-*-coff* | m68*-*-sysv*)
> targ_defvec=m68k_coff_vec
> targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec"
> diff --git a/ld/configure.tgt b/ld/configure.tgt
> index bb86d56..5a68083 100644
> --- a/ld/configure.tgt
> +++ b/ld/configure.tgt
> @@ -106,10 +106,9 @@ arm-*-netbsd*) targ_emul=armnbsd;
> arm-*-nto*) targ_emul=armnto ;;
> arm-*-openbsd*) targ_emul=armnbsd ;;
> arm-*-phoenix*) targ_emul=armelf ;;
> -arm-*-rtems*) targ_emul=armelf ;;
> armeb-*-elf | armeb-*-eabi*)
> targ_emul=armelfb ;;
> -arm-*-elf | arm*-*-eabi*)
> +arm-*-elf | arm*-*-eabi* | arm-*-rtems*)
> targ_emul=armelf ;;
> arm*-*-symbianelf*) targ_emul=armsymbian;;
> arm-*-kaos*) targ_emul=armelf ;;
> @@ -158,11 +157,8 @@ arm*-*-fuchsia*) targ_emul=armelf_fuchsia
> avr-*-*) targ_emul=avr2
> targ_extra_emuls="avr1 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1 avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny"
> ;;
> -bfin-*-elf) targ_emul=elf32bfin;
> - targ_extra_emuls="elf32bfinfd"
> - targ_extra_libpath=$targ_extra_emuls
> - ;;
> -bfin-*-rtems*) targ_emul=elf32bfin;
> +bfin-*-elf | bfin-*-rtems*)
> + targ_emul=elf32bfin
> targ_extra_emuls="elf32bfinfd"
> targ_extra_libpath=$targ_extra_emuls
> ;;
> @@ -239,8 +235,6 @@ i[3-7]86-*-sco*) targ_emul=i386coff ;;
> i[3-7]86-*-isc*) targ_emul=i386coff ;;
> i[3-7]86-*-lynxos*) targ_emul=i386lynx ;;
> i[3-7]86-*-coff) targ_emul=i386coff ;;
> -i[3-7]86-*-rtems*) targ_emul=elf_i386
> - targ_extra_emuls=elf_iamcu ;;
> i[3-7]86-*-aros*) targ_emul=elf_i386
> targ_extra_emuls=elf_iamcu ;;
> i[3-7]86-*-rdos*) targ_emul=elf_i386
> @@ -323,7 +317,8 @@ x86_64-*-netbsd*) targ_emul=elf_x86_64
> i[3-7]86-*-netware) targ_emul=i386nw ;;
> i[3-7]86-*-elfiamcu) targ_emul=elf_iamcu
> targ_extra_emuls=elf_i386 ;;
> -i[3-7]86-*-elf*) targ_emul=elf_i386
> +i[3-7]86-*-elf* | i[3-7]86-*-rtems*)
> + targ_emul=elf_i386
> targ_extra_emuls=elf_iamcu ;;
> x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia*)
> targ_emul=elf_x86_64
> @@ -444,7 +439,8 @@ m68k-hp-bsd*) targ_emul=hp300bsd ;;
> m68*-motorola-sysv*) targ_emul=delta68 ;;
> m68*-*-aout) targ_emul=m68kaout ;;
> m68*-*-coff) targ_emul=m68kcoff ;;
> -m68*-*-elf) targ_emul=m68kelf ;;
> +m68*-*-elf | m68*-*-rtems*)
> + targ_emul=m68kelf ;;
> m68*-*-hpux*) targ_emul=hp3hpux ;;
> m68k-*-linux*aout*) targ_emul=m68klinux
> targ_extra_emuls=m68kelf
> @@ -462,8 +458,6 @@ m68*-*-netbsdaout* | m68*-*-netbsd*)
> targ_emul=m68knbsd
> targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
> m68*-*-psos*) targ_emul=m68kpsos ;;
> -m68*-*-rtems*) targ_emul=m68kelf
> - ;;
> m8*-*-*) targ_emul=m88kbcs
> ;;
> mcore-*-pe) targ_emul=mcorepe ;
> @@ -513,8 +507,8 @@ mips*el-ps2-elf*) targ_emul=elf32lr5900
> targ_extra_emuls="elf32lr5900n32"
> targ_extra_libpath=$targ_extra_emuls ;;
> mips*el-*-elf*) targ_emul=elf32elmip ;;
> -mips*-*-elf*) targ_emul=elf32ebmip ;;
> -mips*-*-rtems*) targ_emul=elf32ebmip ;;
> +mips*-*-elf* | mips*-*-rtems*)
> + targ_emul=elf32ebmip ;;
> mips*el-*-vxworks*) targ_emul=elf32elmipvxworks
> targ_extra_emuls="elf32ebmipvxworks" ;;
> mips*-*-vxworks*) targ_emul=elf32ebmipvxworks
> @@ -575,10 +569,9 @@ nios2*-*-*) targ_emul=nios2elf ;;
> ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
> ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd
> ;;
> -or1k-*-elf | or1knd-*-elf) targ_emul=elf32or1k ;;
> +or1k-*-elf | or1knd-*-elf | or1k-*-rtems* | or1knd-*-rtems*)
> + targ_emul=elf32or1k ;;
> or1k-*-linux* | or1knd-*-linux*) targ_emul=elf32or1k_linux ;;
> -or1k-*-rtems* | or1knd-*-rtems*) targ_emul=elf32or1k
> - ;;
> pdp11-*-*) targ_emul=pdp11
> ;;
> pjl*-*-*) targ_emul=pjlelf
> @@ -602,6 +595,7 @@ powerpc-*-vxworks*)
> targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;;
> powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
> | powerpc*-*-linux* | powerpc*-*-netbsd* | powerpc*-*-openbsd* \
> + | powerpc*-*-rtems* \
> | powerpc*-*-solaris* | powerpc*-*-kaos* | powerpc*-*-vxworks*)
> case "${targ}" in
> powerpc64*)
> @@ -675,7 +669,6 @@ powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
> ;;
> powerpc-*-nto*) targ_emul=elf32ppcnto ;;
> powerpcle-*-nto*) targ_emul=elf32lppcnto ;;
> -powerpc-*-rtems*) targ_emul=elf32ppc ;;
> powerpc-*-macos*) targ_emul=ppcmacos ;;
> powerpc-*-netware*) targ_emul=ppcnw ;;
> powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
> @@ -759,15 +752,16 @@ sh64-*-elf*) targ_emul=shelf
> targ_extra_emuls="shlelf shelf32 shlelf32 shelf64 shlelf64"
> targ_extra_libpath=$targ_extra_emuls ;;
> sparc64-*-aout*) targ_emul=sparcaout ;;
> -sparc64-*-elf*) targ_emul=elf64_sparc ;;
> -sparc64-*-rtems*) targ_emul=elf64_sparc ;;
> +sparc64-*-elf* | sparc64-*-rtems*)
> + targ_emul=elf64_sparc ;;
> sparc-sun-sunos4*) targ_emul=sun4 ;;
> sparclite*-*-elf) targ_emul=elf32_sparc ;;
> sparclite*-*-coff) targ_emul=coff_sparc ;;
> sparclite*-fujitsu-*) targ_emul=sparcaout ;;
> sparc*-*-aout) targ_emul=sparcaout ;;
> sparc*-*-coff) targ_emul=coff_sparc ;;
> -sparc*-*-elf) targ_emul=elf32_sparc ;;
> +sparc*-*-elf | sparc-*-rtems*)
> + targ_emul=elf32_sparc ;;
> sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
> sparc*-*-vxworks*) targ_emul=elf32_sparc_vxworks ;;
> sparc64-*-freebsd* | sparcv9-*-freebsd* | sparc64-*-kfreebsd*-gnu | sparcv9-*-kfreebsd*-gnu)
> @@ -810,8 +804,6 @@ sparcv9-*-solaris2* | sparc64-*-solaris2*)
> tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` ;;
> sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
> sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
> -sparc-*-rtems*) targ_emul=elf32_sparc
> - ;;
> spu-*-elf*) targ_emul=elf32_spu ;;
> tic30-*-*aout*) targ_emul=tic30aout ;;
> tic30-*-*coff*) targ_emul=tic30coff ;;
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 5/5] Remove all RTEMS a.out targets
2017-01-19 12:42 ` [PATCH 5/5] Remove all RTEMS a.out targets Sebastian Huber
@ 2017-01-19 15:43 ` Joel Sherrill
0 siblings, 0 replies; 15+ messages in thread
From: Joel Sherrill @ 2017-01-19 15:43 UTC (permalink / raw)
To: Sebastian Huber, binutils
This is definitely OK. We haven't had a.out targets
in a LONG LONG LONG time. :)
git blame shows that it has been in the obsolete list
since 2005.
Time to give it the axe.
--joel
On 1/19/2017 6:42 AM, Sebastian Huber wrote:
> bfd/
> * config.bfd (*-*-rtemsaout*): Mark as removed.
> ---
> bfd/config.bfd | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bfd/config.bfd b/bfd/config.bfd
> index 48133e8..52db9a4 100644
> --- a/bfd/config.bfd
> +++ b/bfd/config.bfd
> @@ -133,6 +133,7 @@ esac
>
> case $targ in
> *-go32-rtems* | \
> + *-*-rtemsaout* | \
> *-*-rtemscoff* | \
> a29k-* | \
> arm-*-oabi | \
> @@ -144,7 +145,6 @@ case $targ in
> m68*-bull-sysv* | \
> maxq-*-coff | \
> mips*el-*-rtems* | \
> - sparc*-*-rtemsaout* | \
> sparc-*-lynxos* | \
> vax-*-vms* | \
> null)
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 3/5] gas: Default to ELF for RTEMS targets
2017-01-19 15:39 ` Joel Sherrill
@ 2017-01-19 22:55 ` Alan Modra
2017-01-19 22:59 ` Joel Sherrill
0 siblings, 1 reply; 15+ messages in thread
From: Alan Modra @ 2017-01-19 22:55 UTC (permalink / raw)
To: Joel Sherrill; +Cc: Sebastian Huber, binutils
On Thu, Jan 19, 2017 at 09:39:39AM -0600, Joel Sherrill wrote:
> One of the reasons this was duplicated was to ensure
> that when someone tinkered with a target they knew
> XXX-rtems was impacted. With this patch, there is
> no record of each cpu-rtems being a used target.
>
> I know binutils doesn't remove targets often but this
> makes the individual RTEMS targets invisible.
>
> It definitely means we likely don't have to touch
> these files for new targets but it also means
> we aren't obvious when deprecation discussions
> occur.
>
> It would be nice to have a binutils maintainer wade
> in. I can see how this is a nice clean up patch but
> it loses information. What are the thoughts on this?
I would prefer to lose that information. We're talking about bfd/
here, and given that there is no difference between bfd support for
<target>-elf and <target>-rtems, it doesn't make much sense to
single out rtems targets in config.bfd. The only concern would be if
a future change removed support for <target>-elf but you wanted to
keep <target>-rtems. However, I can't see us deprecating an ELF
target unless all support for <target> is no longer wanted.
> Except for the loss of documentation issue, I am
> OK with it.
>
> --joel
>
> On 1/19/2017 6:42 AM, Sebastian Huber wrote:
> >gas/
> > * configure.tgt (aarch64*-*-rtems*): Remove.
> > (bfin-*-rtems*): Likewise.
> > (h8300-*-rtems*): Likewise.
> > (i386-*-rtems*): Likewise.
> > (m32c-*-rtems*): Likewise.
> > (m32r-*-rtems*): Likewise.
> > (m68k-*-rtems*): Likewise.
> > (mips-*-rtems*): Likewise.
> > (nios2-*-rtems*): Likewise.
> > (ppc-*-rtems*): Likewise.
> > (sh-*-rtems*): Likewise.
> > (sparc64-*-rtems*): Likewise.
> > (sparc-*-rtems*): Likewise.
> > (*-*-rtems*) Use ELF format.
> >---
> > gas/configure.tgt | 20 ++++++--------------
> > 1 file changed, 6 insertions(+), 14 deletions(-)
> >
> >diff --git a/gas/configure.tgt b/gas/configure.tgt
> >index 95c4a13..c3b352b 100644
> >--- a/gas/configure.tgt
> >+++ b/gas/configure.tgt
> >@@ -122,7 +122,7 @@ esac
> > generic_target=${cpu_type}-$vendor-$os
> > # Note: This table is alpha-sorted, please try to keep it that way.
> > case ${generic_target} in
> >- aarch64*-*-elf | aarch64*-*-rtems*) fmt=elf;;
> >+ aarch64*-*-elf*) fmt=elf;;
> > aarch64*-*-fuchsia*) fmt=elf;;
> > aarch64*-*-linux*) fmt=elf em=linux ;;
> >
> >@@ -167,7 +167,6 @@ case ${generic_target} in
> >
> > bfin-*-linux-uclibc) fmt=fdpicelf em=linux ;;
> > bfin-*-uclinux*) fmt=elf em=linux ;;
> >- bfin-*-rtems*) fmt=elf ;;
> > bfin-*elf) fmt=elf ;;
> >
> > cr16-*-elf*) fmt=elf ;;
> >@@ -210,7 +209,7 @@ case ${generic_target} in
> > hppa-*-bsd*) fmt=som em=hppa ;;
> > hppa-*-hiux*) fmt=som em=hppa ;;
> >
> >- h8300-*-elf | h8300-*-rtems*) fmt=elf ;;
> >+ h8300-*-elf) fmt=elf ;;
> > h8300-*-linux*) fmt=elf em=linux ;;
> >
> > i370-*-elf* | i370-*-linux*) fmt=elf ;;
> >@@ -266,7 +265,6 @@ case ${generic_target} in
> > i386-*-vsta) fmt=aout ;;
> > i386-*-msdosdjgpp* \
> > | i386-*-go32*) fmt=coff em=go32 ;;
> >- i386-*-rtems*) fmt=elf ;;
> > i386-*-gnu*) fmt=elf em=gnu ;;
> > i386-*-mach*) fmt=aout em=mach ;;
> > i386-*-msdos*) fmt=aout ;;
> >@@ -306,9 +304,9 @@ case ${generic_target} in
> >
> > lm32-*-*) fmt=elf ;;
> >
> >- m32c-*-elf | m32c-*-rtems*) fmt=elf ;;
> >+ m32c-*-elf) fmt=elf ;;
> >
> >- m32r-*-elf* | m32r-*-rtems*) fmt=elf ;;
> >+ m32r-*-elf*) fmt=elf ;;
> > m32r-*-linux*) fmt=elf em=linux;;
> >
> > m68hc11-*-* | m6811-*-*) fmt=elf ;;
> >@@ -317,7 +315,6 @@ case ${generic_target} in
> > m68k-*-aout) fmt=aout bfd_gas=yes ;;
> > m68k-*-elf*) fmt=elf ;;
> > m68k-*-sysv4*) fmt=elf em=svr4 ;;
> >- m68k-*-rtems*) fmt=elf ;;
> > m68k-*-linux-*) fmt=elf em=linux ;;
> > m68k-*-uclinux*) fmt=elf em=uclinux ;;
> > m68k-*-gnu*) fmt=elf ;;
> >@@ -344,7 +341,7 @@ case ${generic_target} in
> > mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
> > mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
> > fmt=elf em=tmips ;;
> >- mips-*-elf* | mips-*-rtems*) fmt=elf ;;
> >+ mips-*-elf*) fmt=elf ;;
> > mips-*-netbsd*) fmt=elf em=tmips ;;
> > mips-*-openbsd*) fmt=elf em=tmips ;;
> >
> >@@ -367,7 +364,6 @@ case ${generic_target} in
> > nds32-*-elf*) fmt=elf ;;
> > nds32-*-linux*) fmt=elf em=linux ;;
> >
> >- nios2-*-rtems*) fmt=elf ;;
> > nios2*-linux*) fmt=elf em=linux ;;
> >
> > ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
> >@@ -390,7 +386,6 @@ case ${generic_target} in
> > ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
> > ppc-*-linux-*) fmt=elf em=linux ;;
> > ppc-*-solaris*) fmt=elf em=solaris ;;
> >- ppc-*-rtems*) fmt=elf ;;
> > ppc-*-macos*) fmt=coff em=macos ;;
> > ppc-*-nto*) fmt=elf ;;
> > ppc-*-kaos*) fmt=elf ;;
> >@@ -423,13 +418,10 @@ case ${generic_target} in
> > sh-*-coff*) fmt=coff ;;
> > sh-*-nto*) fmt=elf ;;
> > sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
> >- sh-*-rtems*) fmt=elf ;;
> > sh-*-kaos*) fmt=elf ;;
> > shle*-*-kaos*) fmt=elf ;;
> > sh64-*-elf*) fmt=elf ;;
> >
> >- sparc64-*-rtems*) fmt=elf ;;
> >- sparc-*-rtems*) fmt=elf ;;
> > sparc-*-sunos4*) fmt=aout em=sun3 ;;
> > sparc-*-aout) fmt=aout em=sparcaout ;;
> > sparc-*-coff) fmt=coff ;;
> >@@ -488,7 +480,7 @@ case ${generic_target} in
> > *-*-generic) fmt=generic ;;
> > *-*-xray | *-*-hms) fmt=coff ;;
> > *-*-sim) fmt=coff ;;
> >- *-*-elf | *-*-sysv4*) fmt=elf ;;
> >+ *-*-elf | *-*-rtems* | *-*-sysv4*) fmt=elf ;;
> > *-*-solaris*) fmt=elf em=solaris ;;
> > *-*-aros*) fmt=elf em=linux ;;
> > *-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
> >
>
> --
>
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 3/5] gas: Default to ELF for RTEMS targets
2017-01-19 22:55 ` Alan Modra
@ 2017-01-19 22:59 ` Joel Sherrill
2017-01-20 7:39 ` Sebastian Huber
0 siblings, 1 reply; 15+ messages in thread
From: Joel Sherrill @ 2017-01-19 22:59 UTC (permalink / raw)
To: Alan Modra; +Cc: Sebastian Huber, binutils
On 1/19/2017 4:55 PM, Alan Modra wrote:
> On Thu, Jan 19, 2017 at 09:39:39AM -0600, Joel Sherrill wrote:
>> One of the reasons this was duplicated was to ensure
>> that when someone tinkered with a target they knew
>> XXX-rtems was impacted. With this patch, there is
>> no record of each cpu-rtems being a used target.
>>
>> I know binutils doesn't remove targets often but this
>> makes the individual RTEMS targets invisible.
>>
>> It definitely means we likely don't have to touch
>> these files for new targets but it also means
>> we aren't obvious when deprecation discussions
>> occur.
>>
>> It would be nice to have a binutils maintainer wade
>> in. I can see how this is a nice clean up patch but
>> it loses information. What are the thoughts on this?
>
> I would prefer to lose that information. We're talking about bfd/
> here, and given that there is no difference between bfd support for
> <target>-elf and <target>-rtems, it doesn't make much sense to
> single out rtems targets in config.bfd. The only concern would be if
> a future change removed support for <target>-elf but you wanted to
> keep <target>-rtems. However, I can't see us deprecating an ELF
> target unless all support for <target> is no longer wanted.
That's the second opinion I wanted. Just wanted to
confirm that someone with a broader binutils thought
the information loss would be OK.
I am OK with it.
>> Except for the loss of documentation issue, I am
>> OK with it.
>>
>> --joel
>>
>> On 1/19/2017 6:42 AM, Sebastian Huber wrote:
>>> gas/
>>> * configure.tgt (aarch64*-*-rtems*): Remove.
>>> (bfin-*-rtems*): Likewise.
>>> (h8300-*-rtems*): Likewise.
>>> (i386-*-rtems*): Likewise.
>>> (m32c-*-rtems*): Likewise.
>>> (m32r-*-rtems*): Likewise.
>>> (m68k-*-rtems*): Likewise.
>>> (mips-*-rtems*): Likewise.
>>> (nios2-*-rtems*): Likewise.
>>> (ppc-*-rtems*): Likewise.
>>> (sh-*-rtems*): Likewise.
>>> (sparc64-*-rtems*): Likewise.
>>> (sparc-*-rtems*): Likewise.
>>> (*-*-rtems*) Use ELF format.
>>> ---
>>> gas/configure.tgt | 20 ++++++--------------
>>> 1 file changed, 6 insertions(+), 14 deletions(-)
>>>
>>> diff --git a/gas/configure.tgt b/gas/configure.tgt
>>> index 95c4a13..c3b352b 100644
>>> --- a/gas/configure.tgt
>>> +++ b/gas/configure.tgt
>>> @@ -122,7 +122,7 @@ esac
>>> generic_target=${cpu_type}-$vendor-$os
>>> # Note: This table is alpha-sorted, please try to keep it that way.
>>> case ${generic_target} in
>>> - aarch64*-*-elf | aarch64*-*-rtems*) fmt=elf;;
>>> + aarch64*-*-elf*) fmt=elf;;
>>> aarch64*-*-fuchsia*) fmt=elf;;
>>> aarch64*-*-linux*) fmt=elf em=linux ;;
>>>
>>> @@ -167,7 +167,6 @@ case ${generic_target} in
>>>
>>> bfin-*-linux-uclibc) fmt=fdpicelf em=linux ;;
>>> bfin-*-uclinux*) fmt=elf em=linux ;;
>>> - bfin-*-rtems*) fmt=elf ;;
>>> bfin-*elf) fmt=elf ;;
>>>
>>> cr16-*-elf*) fmt=elf ;;
>>> @@ -210,7 +209,7 @@ case ${generic_target} in
>>> hppa-*-bsd*) fmt=som em=hppa ;;
>>> hppa-*-hiux*) fmt=som em=hppa ;;
>>>
>>> - h8300-*-elf | h8300-*-rtems*) fmt=elf ;;
>>> + h8300-*-elf) fmt=elf ;;
>>> h8300-*-linux*) fmt=elf em=linux ;;
>>>
>>> i370-*-elf* | i370-*-linux*) fmt=elf ;;
>>> @@ -266,7 +265,6 @@ case ${generic_target} in
>>> i386-*-vsta) fmt=aout ;;
>>> i386-*-msdosdjgpp* \
>>> | i386-*-go32*) fmt=coff em=go32 ;;
>>> - i386-*-rtems*) fmt=elf ;;
>>> i386-*-gnu*) fmt=elf em=gnu ;;
>>> i386-*-mach*) fmt=aout em=mach ;;
>>> i386-*-msdos*) fmt=aout ;;
>>> @@ -306,9 +304,9 @@ case ${generic_target} in
>>>
>>> lm32-*-*) fmt=elf ;;
>>>
>>> - m32c-*-elf | m32c-*-rtems*) fmt=elf ;;
>>> + m32c-*-elf) fmt=elf ;;
>>>
>>> - m32r-*-elf* | m32r-*-rtems*) fmt=elf ;;
>>> + m32r-*-elf*) fmt=elf ;;
>>> m32r-*-linux*) fmt=elf em=linux;;
>>>
>>> m68hc11-*-* | m6811-*-*) fmt=elf ;;
>>> @@ -317,7 +315,6 @@ case ${generic_target} in
>>> m68k-*-aout) fmt=aout bfd_gas=yes ;;
>>> m68k-*-elf*) fmt=elf ;;
>>> m68k-*-sysv4*) fmt=elf em=svr4 ;;
>>> - m68k-*-rtems*) fmt=elf ;;
>>> m68k-*-linux-*) fmt=elf em=linux ;;
>>> m68k-*-uclinux*) fmt=elf em=uclinux ;;
>>> m68k-*-gnu*) fmt=elf ;;
>>> @@ -344,7 +341,7 @@ case ${generic_target} in
>>> mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
>>> mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
>>> fmt=elf em=tmips ;;
>>> - mips-*-elf* | mips-*-rtems*) fmt=elf ;;
>>> + mips-*-elf*) fmt=elf ;;
>>> mips-*-netbsd*) fmt=elf em=tmips ;;
>>> mips-*-openbsd*) fmt=elf em=tmips ;;
>>>
>>> @@ -367,7 +364,6 @@ case ${generic_target} in
>>> nds32-*-elf*) fmt=elf ;;
>>> nds32-*-linux*) fmt=elf em=linux ;;
>>>
>>> - nios2-*-rtems*) fmt=elf ;;
>>> nios2*-linux*) fmt=elf em=linux ;;
>>>
>>> ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
>>> @@ -390,7 +386,6 @@ case ${generic_target} in
>>> ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
>>> ppc-*-linux-*) fmt=elf em=linux ;;
>>> ppc-*-solaris*) fmt=elf em=solaris ;;
>>> - ppc-*-rtems*) fmt=elf ;;
>>> ppc-*-macos*) fmt=coff em=macos ;;
>>> ppc-*-nto*) fmt=elf ;;
>>> ppc-*-kaos*) fmt=elf ;;
>>> @@ -423,13 +418,10 @@ case ${generic_target} in
>>> sh-*-coff*) fmt=coff ;;
>>> sh-*-nto*) fmt=elf ;;
>>> sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
>>> - sh-*-rtems*) fmt=elf ;;
>>> sh-*-kaos*) fmt=elf ;;
>>> shle*-*-kaos*) fmt=elf ;;
>>> sh64-*-elf*) fmt=elf ;;
>>>
>>> - sparc64-*-rtems*) fmt=elf ;;
>>> - sparc-*-rtems*) fmt=elf ;;
>>> sparc-*-sunos4*) fmt=aout em=sun3 ;;
>>> sparc-*-aout) fmt=aout em=sparcaout ;;
>>> sparc-*-coff) fmt=coff ;;
>>> @@ -488,7 +480,7 @@ case ${generic_target} in
>>> *-*-generic) fmt=generic ;;
>>> *-*-xray | *-*-hms) fmt=coff ;;
>>> *-*-sim) fmt=coff ;;
>>> - *-*-elf | *-*-sysv4*) fmt=elf ;;
>>> + *-*-elf | *-*-rtems* | *-*-sysv4*) fmt=elf ;;
>>> *-*-solaris*) fmt=elf em=solaris ;;
>>> *-*-aros*) fmt=elf em=linux ;;
>>> *-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
>>>
>>
>> --
>>
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 3/5] gas: Default to ELF for RTEMS targets
2017-01-19 22:59 ` Joel Sherrill
@ 2017-01-20 7:39 ` Sebastian Huber
0 siblings, 0 replies; 15+ messages in thread
From: Sebastian Huber @ 2017-01-20 7:39 UTC (permalink / raw)
To: Joel Sherrill, Alan Modra; +Cc: binutils
On 19/01/17 23:59, Joel Sherrill wrote:
>
>
> On 1/19/2017 4:55 PM, Alan Modra wrote:
>> On Thu, Jan 19, 2017 at 09:39:39AM -0600, Joel Sherrill wrote:
>>> One of the reasons this was duplicated was to ensure
>>> that when someone tinkered with a target they knew
>>> XXX-rtems was impacted. With this patch, there is
>>> no record of each cpu-rtems being a used target.
>>>
>>> I know binutils doesn't remove targets often but this
>>> makes the individual RTEMS targets invisible.
>>>
>>> It definitely means we likely don't have to touch
>>> these files for new targets but it also means
>>> we aren't obvious when deprecation discussions
>>> occur.
>>>
>>> It would be nice to have a binutils maintainer wade
>>> in. I can see how this is a nice clean up patch but
>>> it loses information. What are the thoughts on this?
>>
>> I would prefer to lose that information. We're talking about bfd/
>> here, and given that there is no difference between bfd support for
>> <target>-elf and <target>-rtems, it doesn't make much sense to
>> single out rtems targets in config.bfd. The only concern would be if
>> a future change removed support for <target>-elf but you wanted to
>> keep <target>-rtems. However, I can't see us deprecating an ELF
>> target unless all support for <target> is no longer wanted.
>
> That's the second opinion I wanted. Just wanted to
> confirm that someone with a broader binutils thought
> the information loss would be OK.
>
> I am OK with it.
Thanks for your review. One side-effect of this patch set is support for
RISC-V and 64-bit PowerPC for RTEMS.
Would someone mind committing this and
https://sourceware.org/ml/binutils/2017-01/msg00318.html
for me?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/5] Remove all RTEMS COFF targets
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
` (4 preceding siblings ...)
2017-01-19 15:31 ` [PATCH 1/5] Remove all RTEMS COFF targets Joel Sherrill
@ 2017-01-25 6:39 ` Sebastian Huber
2017-01-25 7:30 ` Alan Modra
5 siblings, 1 reply; 15+ messages in thread
From: Sebastian Huber @ 2017-01-25 6:39 UTC (permalink / raw)
To: binutils
Would someone please commit this patch series for me.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/5] Remove all RTEMS COFF targets
2017-01-25 6:39 ` Sebastian Huber
@ 2017-01-25 7:30 ` Alan Modra
0 siblings, 0 replies; 15+ messages in thread
From: Alan Modra @ 2017-01-25 7:30 UTC (permalink / raw)
To: Sebastian Huber; +Cc: binutils
On Wed, Jan 25, 2017 at 07:39:16AM +0100, Sebastian Huber wrote:
> Would someone please commit this patch series for me.
Done.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2017-01-25 7:30 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19 12:42 [PATCH 1/5] Remove all RTEMS COFF targets Sebastian Huber
2017-01-19 12:42 ` [PATCH 2/5] gas: Use ARM EABI for RTEMS Sebastian Huber
2017-01-19 15:35 ` Joel Sherrill
2017-01-19 12:42 ` [PATCH 3/5] gas: Default to ELF for RTEMS targets Sebastian Huber
2017-01-19 15:39 ` Joel Sherrill
2017-01-19 22:55 ` Alan Modra
2017-01-19 22:59 ` Joel Sherrill
2017-01-20 7:39 ` Sebastian Huber
2017-01-19 12:42 ` [PATCH 4/5] Move RTEMS target configuration to ELF sections Sebastian Huber
2017-01-19 15:41 ` Joel Sherrill
2017-01-19 12:42 ` [PATCH 5/5] Remove all RTEMS a.out targets Sebastian Huber
2017-01-19 15:43 ` Joel Sherrill
2017-01-19 15:31 ` [PATCH 1/5] Remove all RTEMS COFF targets Joel Sherrill
2017-01-25 6:39 ` Sebastian Huber
2017-01-25 7:30 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).