This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Adding target OS 'RDOS' to binutils


Write the patches, sign a copyright assignment, send them to this
mailing list.

OK. These patches are for version 2.12 of binutils.


config.sub file:

# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
rdos*)
os=-rdos
basic_machine=
;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
then os=`echo $1 | sed 's/.*-/-/'`
else os=; fi
;;
esac


### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work.  We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in

.....

-rdos)
 basic_machine=i386-pc
 os=-rdos
 ;;
esac

# Decode manufacturer-specific aliases for certain operating systems.

if [ x"$os" != x"" ]
then
case $os in

....

-rdos)
 os=-rdos
 ;;

....

*)
 # Get rid of the `-' at the beginning of $os.
 os=`echo $os | sed 's/[^-]*-//'`
 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
 exit 1
 ;;
esac

configure.in:

case "${target}" in

....

i[3456]86-*-coff | i[3456]86-*-elf | i[3456]86-*-rdos)
if [ x${is_cross_compiler} != xno ] ; then
target_configdirs="${target_configdirs} target-libstub target-cygmon"
fi
;;



bfd/config.bfd:


case "${targ}" in

.....

 i[3456]86-*-dgux* | i[3456]86-*-sysv5* | i[3456]86-*-rdos)
   targ_defvec=bfd_elf32_i386_vec
   targ_selvecs=i386coff_vec
   ;;

gas/configure

   # assign object format
   case ${generic_target} in

....

i386-*-rdos*) fmt=elf ;;

ld/configure.tgt

case "${targ}" in

....

i[3456]86-*-rdos*) targ_emul=elf_i386 ;;


Regards, Leif Ekblad


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]