stdlibc: ~several fixes
[meinos.git] / binutils-2.18-meinos.patch
blob79cb0f587d29ccb87ed59a5cb52012b4ecbba571
1 diff -urNp binutils-2.18/bfd/config.bfd binutils-2.18-meinos//bfd/config.bfd
2 --- binutils-2.18/bfd/config.bfd 2007-08-28 19:19:33.000000000 +0200
3 +++ binutils-2.18-meinos//bfd/config.bfd 2008-08-03 15:36:20.000000000 +0200
4 @@ -197,6 +197,11 @@ case "${targ}" in
5 ;;
6 #endif /* BFD64 */
8 + i[3-7]86-*-meinos*)
9 + targ_defvec=bfd_elf32_i386_vec
10 + targ_selvecs=i386coff_vec
11 + ;;
13 am33_2.0-*-linux*)
14 targ_defvec=bfd_elf32_am33lin_vec
16 diff -urNp binutils-2.18/config.sub binutils-2.18-meinos//config.sub
17 --- binutils-2.18/config.sub 2007-08-06 22:00:30.000000000 +0200
18 +++ binutils-2.18-meinos//config.sub 2008-08-03 10:57:16.000000000 +0200
19 @@ -1207,7 +1207,7 @@ case $os in
20 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
21 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
22 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
23 - | -aos* \
24 + | -aos* | -meinos* \
25 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
26 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
27 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
28 diff -urNp binutils-2.18/gas/configure.tgt binutils-2.18-meinos//gas/configure.tgt
29 --- binutils-2.18/gas/configure.tgt 2007-08-28 19:19:36.000000000 +0200
30 +++ binutils-2.18-meinos//gas/configure.tgt 2008-08-03 11:06:24.000000000 +0200
31 @@ -94,6 +94,8 @@ 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-*-meinos*) fmt=elf ;;
37 alpha-*-*vms*) fmt=evax ;;
38 alpha-*-osf*) fmt=ecoff ;;
39 alpha-*-linuxecoff*) fmt=ecoff ;;
40 diff -urNp binutils-2.18/ld/configure binutils-2.18-meinos//ld/configure
41 --- binutils-2.18/ld/configure 2007-08-12 20:53:33.000000000 +0200
42 +++ binutils-2.18-meinos//ld/configure 2008-08-27 20:07:17.000000000 +0200
43 @@ -11220,7 +11220,6 @@ else
44 GENINSRC_NEVER_FALSE=
48 . ${srcdir}/configure.host
51 diff -urNp binutils-2.18/ld/configure.host binutils-2.18-meinos//ld/configure.host
52 --- binutils-2.18/ld/configure.host 2007-08-28 19:19:42.000000000 +0200
53 +++ binutils-2.18-meinos//ld/configure.host 2008-08-27 20:10:28.000000000 +0200
54 @@ -15,7 +15,6 @@ HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ]
56 # Generic configurations:
59 case "${host}" in
61 *-*-freebsd* | *-*-kfreebsd*-gnu | *-*-dragonfly*)
62 diff -urNp binutils-2.18/ld/configure.tgt binutils-2.18-meinos//ld/configure.tgt
63 --- binutils-2.18/ld/configure.tgt 2007-08-28 19:19:42.000000000 +0200
64 +++ binutils-2.18-meinos//ld/configure.tgt 2008-08-27 20:15:51.000000000 +0200
65 @@ -27,6 +27,9 @@ targ64_extra_libpath=
66 # architecture variants should be kept together even if their names
67 # break the alpha sorting.
68 case "${targ}" in
69 +i[3-7]86-*-meinos*)
70 + targ_emul=meinos_i386
71 + ;;
72 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
73 targ_emul=elf64alpha_fbsd
74 targ_extra_emuls="elf64alpha alpha"
75 diff -urNp binutils-2.18/ld/emulparams/meinos_i386.sh binutils-2.18-meinos//ld/emulparams/meinos_i386.sh
76 --- binutils-2.18/ld/emulparams/meinos_i386.sh 1970-01-01 01:00:00.000000000 +0100
77 +++ binutils-2.18-meinos//ld/emulparams/meinos_i386.sh 2008-08-27 20:16:45.000000000 +0200
78 @@ -0,0 +1,13 @@
79 +SCRIPT_NAME=elf
80 +OUTPUT_FORMAT=elf32-i386
81 +TEXT_START_ADDR=0x40001000
82 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
83 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
84 +ARCH=i386
85 +MACHINE=
86 +NOP=0x90909090
87 +TEMPLATE_NAME=elf32
88 +GENERATE_SHLIB_SCRIPT=yes
89 +GENERATE_PIE_SCRIPT=yes
90 +NO_SMALL_DATA=yes
91 +SEPARATE_GOTPLT=12
92 \ Kein Zeilenumbruch am Dateiende.
93 diff -urNp binutils-2.18/ld/Makefile.in binutils-2.18-meinos//ld/Makefile.in
94 --- binutils-2.18/ld/Makefile.in 2007-08-06 22:29:54.000000000 +0200
95 +++ binutils-2.18-meinos//ld/Makefile.in 2008-08-03 14:20:32.000000000 +0200
96 @@ -448,6 +448,7 @@ ALL_EMULATIONS = \
97 eelf32xstormy16.o \
98 eelf32xtensa.o \
99 eelf_i386.o \
100 + emeinos_i386.o \
101 eelf_i386_be.o \
102 eelf_i386_chaos.o \
103 eelf_i386_fbsd.o \
104 @@ -1807,6 +1808,8 @@ eelf64ltsmip.c: $(srcdir)/emulparams/elf
105 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
106 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
107 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
108 +emeinos_i386.c: $(srcdir)/emulparams/meinos_i386.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
109 + ${GENSCRIPTS} meinos_i386 "$(tdir_meinos_i386)"
110 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
111 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
112 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"