]> git.buserror.net Git - polintos/scott/priv.git/blob - toolchain-patches/binutils/2.17/misc.patch
minor doc updates
[polintos/scott/priv.git] / toolchain-patches / binutils / 2.17 / misc.patch
1 diff -urN binutils-2.17-orig/bfd/config.bfd binutils-2.17/bfd/config.bfd
2 --- binutils-2.17-orig/bfd/config.bfd   2006-04-05 07:41:57.000000000 -0500
3 +++ binutils-2.17/bfd/config.bfd        2007-07-29 16:19:09.000000000 -0500
4 @@ -545,6 +545,11 @@
5      targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
6      targ64_selvecs=bfd_elf64_x86_64_vec
7      ;;
8 +  i[5-7]86-*-polintos*)
9 +    targ_defvec=bfd_elf32_i386_vec
10 +    targ64_selvecs=bfd_elf64_x86_64_vec
11 +    want64=true
12 +    ;;
13  #ifdef BFD64
14    x86_64-*-elf*)
15      targ_defvec=bfd_elf64_x86_64_vec
16 @@ -562,6 +567,10 @@
17      targ_defvec=bfd_elf64_x86_64_vec
18      targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
19      ;;
20 +  x86_64-*-polintos*)
21 +    targ_defvec=bfd_elf64_x86_64_vec
22 +    targ_selvecs=bfd_elf32_i386_vec
23 +    ;;
24  #endif
25    i[3-7]86-*-lynxos*)
26      targ_defvec=bfd_elf32_i386_vec
27 diff -urN binutils-2.17-orig/config.guess binutils-2.17/config.guess
28 --- binutils-2.17-orig/config.guess     2006-01-16 11:34:37.000000000 -0600
29 +++ binutils-2.17/config.guess  2007-07-29 16:17:34.000000000 -0500
30 @@ -141,6 +141,9 @@
31  # Note: order is significant - the case branches are not exclusive.
32  
33  case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
34 +    *:PolIntOS:*:*)
35 +        echo ${UNAME_MACHINE}-polintos
36 +        exit 0 ;;
37      *:NetBSD:*:*)
38         # NetBSD (nbsd) targets should (where applicable) match one or
39         # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
40 diff -urN binutils-2.17-orig/config.sub binutils-2.17/config.sub
41 --- binutils-2.17-orig/config.sub       2006-01-16 11:34:37.000000000 -0600
42 +++ binutils-2.17/config.sub    2007-07-29 16:18:09.000000000 -0500
43 @@ -1215,7 +1215,7 @@
44               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
45               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
46               | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
47 -             | -skyos* | -haiku* | -rdos*)
48 +             | -skyos* | -haiku* | -rdos* | -polintos*)
49         # Remember, each alternative MUST END IN *, to match a version number.
50                 ;;
51         -qnx*)
52 diff -urN binutils-2.17-orig/gas/configure.tgt binutils-2.17/gas/configure.tgt
53 --- binutils-2.17-orig/gas/configure.tgt        2006-04-05 07:41:57.000000000 -0500
54 +++ binutils-2.17/gas/configure.tgt     2007-07-29 16:19:13.000000000 -0500
55 @@ -211,6 +211,7 @@
56    i386-*-interix*)                     fmt=coff em=interix ;;
57    i386-*-mingw32*)                     fmt=coff em=pe ;;
58    i386-*-nto-qnx*)                     fmt=elf ;;
59 +  i386-*-polintos*)                    fmt=elf ;;
60    i386-*-*nt*)                         fmt=coff em=pe ;;
61    i386-*-chaos)                                fmt=elf ;;
62    i386-*-rdos*)                                fmt=elf ;;
63 diff -urN binutils-2.17-orig/ld/configure.tgt binutils-2.17/ld/configure.tgt
64 --- binutils-2.17-orig/ld/configure.tgt 2006-04-05 07:41:57.000000000 -0500
65 +++ binutils-2.17/ld/configure.tgt      2007-07-29 16:20:05.000000000 -0500
66 @@ -224,6 +224,14 @@
67  i[3-7]86-*-vxworks*)   targ_emul=elf_i386_vxworks ;;
68  i[3-7]86-*-chaos)      targ_emul=elf_i386_chaos
69                         ;;
70 +i[5-7]86-*-polintos)   targ_emul=elf_i386
71 +                       if test x${want64} = xtrue; then
72 +                               targ_extra_emuls="$targ_extra_emuls elf_x86_64"
73 +                       fi
74 +                       ;;
75 +x86_64-*-polintos*)    targ_emul=elf_x86_64
76 +                       targ_extra_emuls="elf_i386"
77 +                       ;;
78  i860-*-coff)           targ_emul=coff_i860 ;;
79  i860-stardent-sysv4* | i860-stardent-elf*)
80                         targ_emul=elf32_i860