-
Notifications
You must be signed in to change notification settings - Fork 16
/
binutils.patch
58 lines (55 loc) · 2.51 KB
/
binutils.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- ../../binutils-2.20/config.sub 2009-08-17 00:10:29.000000000 -0400
+++ config.sub 2010-04-03 18:01:47.000000000 -0400
@@ -1275,6 +1275,7 @@ case $os in
| -kopensolaris* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* | -aros* \
+ | -{{OSNAME}}* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
--- ../../binutils-2.20/ld/configure.tgt 2009-08-06 13:38:03.000000000 -0400
+++ ld/configure.tgt 2010-04-03 18:01:16.000000000 -0400
@@ -201,6 +201,8 @@ i[3-7]86-*-linux-*) targ_emul=elf_i386
targ64_extra_emuls="elf_x86_64 elf_l1om"
targ64_extra_libpath=elf_x86_64
tdir_i386linux=${targ_alias}aout ;;
+x86_64-*-{{OSNAME}}*) targ_emul={{OSNAME}}_x86_64 ;;
+
x86_64-*-linux-*) targ_emul=elf_x86_64
targ_extra_emuls="elf_i386 i386linux elf_l1om"
targ_extra_libpath=elf_i386
--- ../../binutils-2.20/ld/Makefile.in 2009-09-07 08:10:24.000000000 -0400
+++ ld/Makefile.in 2010-04-03 18:01:16.000000000 -0400
@@ -2451,6 +2451,9 @@ eelf64ltsmip.c: $(srcdir)/emulparams/elf
eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
+e{{OSNAME}}_x86_64.c: $(srcdir)/emulparams/{{OSNAME}}_x86_64.sh \
+ $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} {{OSNAME}}_x86_64 "$(tdir_{{OSNAME}}_x86_64)"
eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
--- ../../binutils-2.20/bfd/config.bfd 2009-08-06 13:38:00.000000000 -0400
+++ bfd/config.bfd 2010-04-03 18:01:16.000000000 -0400
@@ -615,6 +615,11 @@ case "${targ}" in
targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec"
want64=true
;;
+ x86_64-*-{{OSNAME}}*)
+ targ_defvec=bfd_elf64_x86_64_vec
+ targ_selvecs=bfd_elf32_i386_vec
+ want64=true
+ ;;
x86_64-*-elf*)
targ_defvec=bfd_elf64_x86_64_vec
targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec i386coff_vec"
--- ../../../binutils-2.20/gas/configure.tgt 2009-09-09 04:13:28.000000000 -0400
+++ gas/configure.tgt 2010-04-03 19:13:26.000000000 -0400
@@ -236,6 +236,7 @@ case ${generic_target} in
i386-*-chaos) fmt=elf ;;
i386-*-rdos*) fmt=elf ;;
i386-*-darwin*) fmt=macho ;;
+ i386-*-{{OSNAME}}*) fmt=elf ;;
i860-*-*) fmt=elf endian=little ;;