cynix_binutils-2.20.patch (3651B)
1 diff -rupN binutils-2.20-orig/bfd/config.bfd binutils-2.20/bfd/config.bfd 2 --- binutils-2.20-orig/bfd/config.bfd 2009-08-06 18:38:00.000000000 +0100 3 +++ binutils-2.20/bfd/config.bfd 2010-02-09 16:06:12.000000000 +0000 4 @@ -207,7 +207,10 @@ case "${targ}" in 5 want64=true 6 ;; 7 #endif /* BFD64 */ 8 - 9 + i[3-7]86-*-cynix*) 10 + targ_defvec=bfd_elf32_i386_vec 11 + targ_selvecs=i386coff_vec 12 + ;; 13 am34-*-linux* | am33_2.0-*-linux*) 14 targ_defvec=bfd_elf32_am33lin_vec 15 ;; 16 diff -rupN binutils-2.20-orig/config.sub binutils-2.20/config.sub 17 --- binutils-2.20-orig/config.sub 2009-08-17 05:10:29.000000000 +0100 18 +++ binutils-2.20/config.sub 2010-02-09 16:06:18.000000000 +0000 19 @@ -1274,7 +1274,7 @@ case $os in 20 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 21 | -kopensolaris* \ 22 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 23 - | -aos* | -aros* \ 24 + | -aos* | -cynix* | -aros* \ 25 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 26 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 27 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 28 diff -rupN binutils-2.20-orig/gas/configure.tgt binutils-2.20/gas/configure.tgt 29 --- binutils-2.20-orig/gas/configure.tgt 2009-09-09 09:13:28.000000000 +0100 30 +++ binutils-2.20/gas/configure.tgt 2010-02-09 16:06:13.000000000 +0000 31 @@ -96,6 +96,7 @@ esac 32 generic_target=${cpu_type}-$vendor-$os 33 # Note: This table is alpha-sorted, please try to keep it that way. 34 case ${generic_target} in 35 + i386-*-cynix*) fmt=elf ;; 36 alpha-*-*vms*) fmt=evax ;; 37 alpha-*-osf*) fmt=ecoff ;; 38 alpha-*-linuxecoff*) fmt=ecoff ;; 39 diff -rupN binutils-2.20-orig/ld/Makefile.in binutils-2.20/ld/Makefile.in 40 --- binutils-2.20-orig/ld/Makefile.in 2009-09-07 13:10:24.000000000 +0100 41 +++ binutils-2.20/ld/Makefile.in 2010-02-09 16:06:09.000000000 +0000 42 @@ -2451,6 +2451,9 @@ eelf64ltsmip.c: $(srcdir)/emulparams/elf 43 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \ 44 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} 45 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)" 46 +ecynix_i386.c: $(srcdir)/emulparams/cynix_i386.sh \ 47 + $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} 48 + ${GENSCRIPTS} cynix_i386 "$(tdir_cynix_i386)" 49 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \ 50 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} 51 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)" 52 diff -rupN binutils-2.20-orig/ld/configure.tgt binutils-2.20/ld/configure.tgt 53 --- binutils-2.20-orig/ld/configure.tgt 2009-08-06 18:38:03.000000000 +0100 54 +++ binutils-2.20/ld/configure.tgt 2010-02-09 16:06:09.000000000 +0000 55 @@ -36,6 +36,7 @@ alpha*-*-linuxecoff*) targ_emul=alpha ta 56 alpha*-*-linux-*) targ_emul=elf64alpha targ_extra_emuls=alpha 57 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'` ;; 58 alpha*-*-osf*) targ_emul=alpha ;; 59 +i[3-7]86-*-cynix*) targ_emul=cynix_i386 ;; 60 alpha*-*-gnu*) targ_emul=elf64alpha ;; 61 alpha*-*-netware*) targ_emul=alpha ;; 62 alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd ;; 63 diff -rupN binutils-2.20-orig/ld/emulparams/cynix_i386.sh binutils-2.20/ld/emulparams/cynix_i386.sh 64 --- binutils-2.20-orig/ld/emulparams/cynix_i386.sh 1970-01-01 01:00:00.000000000 +0100 65 +++ binutils-2.20/ld/emulparams/cynix_i386.sh 2010-02-09 16:06:09.000000000 +0000 66 @@ -0,0 +1,13 @@ 67 +SCRIPT_NAME=elf 68 +OUTPUT_FORMAT=elf32-i386 69 +TEXT_START_ADDR=0x40000000 70 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" 71 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" 72 +ARCH=i386 73 +MACHINE= 74 +NOP=0x90909090 75 +TEMPLATE_NAME=elf32 76 +GENERATE_SHLIB_SCRIPT=yes 77 +GENERATE_PIE_SCRIPT=yes 78 +NO_SMALL_DATA=yes 79 +SEPARATE_GOTPLT=12