* libcurses++, libc++ and liblightOS++ are installed into the crosscompiler directory
[lightOS.git] / toolchain / binutils.patch
blob1355ef363bdb9aa43b2b1d13e58424c5f0dc4b24
1 --- config.sub 2008-04-14 11:28:35.000000000 +0200
2 +++ config.sub 2009-06-30 16:19:07.000000000 +0200
3 @@ -1266,7 +1266,8 @@
4 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
5 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
6 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
7 - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
8 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* \
9 + | -lightos*)
10 # Remember, each alternative MUST END IN *, to match a version number.
12 -qnx*)
14 --- bfd/config.bfd 2008-04-16 20:02:01.000000000 +0200
15 +++ bfd/config.bfd 2009-06-30 16:26:20.000000000 +0200
16 @@ -588,6 +588,13 @@
17 targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec bfd_efi_bsdrv_ia32_vec bfd_efi_rtdrv_ia32_vec"
18 targ64_selvecs=bfd_elf64_x86_64_vec
20 + i[3-7]86-*-lightos*)
21 + targ_defvec=bfd_elf32_i386_vec
22 + ;;
23 + x86_64-*-lightos*)
24 + targ_defvec=bfd_elf64_x86_64_vec
25 + want64=true
26 + ;;
27 #ifdef BFD64
28 x86_64-*-dicos*)
29 targ_defvec=bfd_elf64_x86_64_vec
31 --- gas/configure.tgt 2008-10-02 10:07:17.000000000 +0200
32 +++ gas/configure.tgt 2009-06-30 16:29:57.000000000 +0200
33 @@ -192,6 +192,7 @@
34 i386-*-openbsd[0-2].* | \
35 i386-*-openbsd3.[0-2]) fmt=aout em=nbsd ;;
36 i386-*-openbsd*) fmt=elf em=nbsd ;;
37 + i386-*-lightos*) fmt=elf ;;
38 i386-*-linux*aout*) fmt=aout em=linux ;;
39 i386-*-linux*oldld) fmt=aout em=linux ;;
40 i386-*-linux*coff*) fmt=coff em=linux ;;
42 --- ld/configure.tgt 2008-08-09 07:35:13.000000000 +0200
43 +++ ld/configure.tgt 2009-06-30 16:33:55.000000000 +0200
44 @@ -187,6 +187,8 @@
45 i[3-7]86-*-bsd386) targ_emul=i386bsd ;;
46 i[3-7]86-*-bsdi*) targ_emul=i386bsd ;;
47 i[3-7]86-*-aout) targ_emul=i386aout ;;
48 +i[3-7]86-*-lightos*) targ_emul=lightos_i386 ;;
49 +x86_64-*-lightos*) targ_emul=lightos_x86_64 ;;
50 i[3-7]86-*-linux*aout*) targ_emul=i386linux
51 targ_extra_emuls=elf_i386
52 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` ;;
54 --- /dev/null 2009-05-15 08:46:44.000000000 +0200
55 +++ ld/emulparams/lightos_i386.sh 2009-06-30 16:37:30.000000000 +0200
56 @@ -0,0 +1,13 @@
57 +SCRIPT_NAME=elf
58 +OUTPUT_FORMAT=elf32-i386
59 +TEXT_START_ADDR=0x00400000
60 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
61 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
62 +ARCH=i386
63 +MACHINE=
64 +NOP=0x90909090
65 +TEMPLATE_NAME=elf32
66 +GENERATE_SHLIB_SCRIPT=yes
67 +GENERATE_PIE_SCRIPT=yes
68 +NO_SMALL_DATA=yes
69 +SEPARATE_GOTPLT=12
71 --- /dev/null 2009-05-15 08:46:44.000000000 +0200
72 +++ ld/emulparams/lightos_x86_64.sh 2009-06-30 16:37:30.000000000 +0200
73 @@ -0,0 +1,14 @@
74 +SCRIPT_NAME=elf
75 +ELFSIZE=64
76 +OUTPUT_FORMAT="elf64-x86-64"
77 +TEXT_START_ADDR=0x00400000
78 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
79 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
80 +ARCH="i386:x86-64"
81 +MACHINE=
82 +NOP=0x90909090
83 +TEMPLATE_NAME=elf32
84 +GENERATE_SHLIB_SCRIPT=yes
85 +GENERATE_PIE_SCRIPT=yes
86 +NO_SMALL_DATA=yes
87 +SEPARATE_GOTPLT=24
89 --- ld/Makefile.in 2008-12-23 14:54:52.000000000 +0100
90 +++ ld/Makefile.in 2009-06-30 16:41:37.000000000 +0200
91 @@ -1838,6 +1838,10 @@
92 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
93 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
94 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
95 +elightos_i386.c: $(srcdir)/emulparams/lightos_i386.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
96 + ${GENSCRIPTS} lightos_i386 "$(tdir_lightos_i386)"
97 +elightos_x86_64.c: $(srcdir)/emulparams/lightos_x86_64.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
98 + ${GENSCRIPTS} lightos_x86_64 "$(tdir_lightos_x86_64)"
99 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
100 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
101 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"