diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.20.1')
11 files changed, 394 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/110-arm-eabi-conf.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/110-arm-eabi-conf.patch new file mode 100644 index 0000000000..2623301da0 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/110-arm-eabi-conf.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | --- /tmp/configure.ac 2008-06-22 14:14:59.000000000 +0200 | ||
2 | +++ binutils-2.18.50.0.7/configure.ac 2008-06-22 14:15:30.000000000 +0200 | ||
3 | @@ -561,7 +561,7 @@ | ||
4 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | ||
5 | libgloss_dir=arm | ||
6 | ;; | ||
7 | - arm*-*-linux-gnueabi) | ||
8 | + arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) | ||
9 | noconfigdirs="$noconfigdirs target-qthreads" | ||
10 | noconfigdirs="$noconfigdirs target-libobjc" | ||
11 | case ${with_newlib} in | ||
12 | --- /tmp/configure 2008-06-22 14:17:11.000000000 +0200 | ||
13 | +++ binutils-2.18.50.0.7/configure 2008-06-22 14:17:56.000000000 +0200 | ||
14 | @@ -2307,7 +2307,7 @@ | ||
15 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | ||
16 | libgloss_dir=arm | ||
17 | ;; | ||
18 | - arm*-*-linux-gnueabi) | ||
19 | + arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi) | ||
20 | noconfigdirs="$noconfigdirs target-qthreads" | ||
21 | noconfigdirs="$noconfigdirs target-libobjc" | ||
22 | case ${with_newlib} in | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-2.16.1-e300c2c3.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-2.16.1-e300c2c3.patch new file mode 100644 index 0000000000..dfe9b18e17 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-2.16.1-e300c2c3.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Adds support for Freescale Power architecture e300c2 and e300c3 cores. | ||
2 | http://www.bitshrine.org/gpp/tc-fsl-x86lnx-e300c3-nptl-4.0.2-2.src.rpm | ||
3 | |||
4 | Leon Woestenberg <leonw@mailcan.com> | ||
5 | |||
6 | Index: binutils-2.19.51.0.3/opcodes/ppc-dis.c | ||
7 | =================================================================== | ||
8 | --- binutils-2.19.51.0.3.orig/opcodes/ppc-dis.c 2009-04-16 00:38:45.000000000 -0700 | ||
9 | +++ binutils-2.19.51.0.3/opcodes/ppc-dis.c 2009-04-16 00:43:56.000000000 -0700 | ||
10 | @@ -132,6 +132,8 @@ | ||
11 | | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7 | PPC_OPCODE_ALTIVEC | ||
12 | | PPC_OPCODE_VSX), | ||
13 | 0 }, | ||
14 | + { "pmr", (PPC_OPCODE_PMR), | ||
15 | + 0 }, | ||
16 | { "ppc", (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32), | ||
17 | 0 }, | ||
18 | { "ppc32", (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32), | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch new file mode 100644 index 0000000000..61517d1d4c --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | This is because libdir has a trailing slash which breaks the comparision. | ||
2 | |||
3 | RP 2/1/10 | ||
4 | |||
5 | Index: binutils-2.20.1/ltmain.sh | ||
6 | =================================================================== | ||
7 | --- binutils-2.20.1.orig/ltmain.sh 2009-09-01 00:59:32.000000000 +0800 | ||
8 | +++ binutils-2.20.1/ltmain.sh 2010-07-29 09:41:14.000000000 +0800 | ||
9 | @@ -2156,8 +2156,12 @@ | ||
10 | dir="$dir$objdir" | ||
11 | |||
12 | if test -n "$relink_command"; then | ||
13 | + # Strip any trailing slash from the destination. | ||
14 | + func_stripname '' '/' "$libdir" | ||
15 | + destlibdir=$func_stripname_result | ||
16 | + | ||
17 | # Determine the prefix the user has applied to our future dir. | ||
18 | - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` | ||
19 | + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$destlibdir\$%%"` | ||
20 | |||
21 | # Don't allow the user to place us outside of our expected | ||
22 | # location b/c this prevents finding dependent libraries that | ||
23 | @@ -5570,8 +5574,14 @@ | ||
24 | absdir="$abs_ladir" | ||
25 | libdir="$abs_ladir" | ||
26 | else | ||
27 | - dir="$libdir" | ||
28 | - absdir="$libdir" | ||
29 | + # Adding 'libdir' from the .la file to our library search paths | ||
30 | + # breaks crosscompilation horribly. We cheat here and don't add | ||
31 | + # it, instead adding the path where we found the .la. -CL | ||
32 | + dir="$abs_ladir" | ||
33 | + absdir="$abs_ladir" | ||
34 | + libdir="$abs_ladir" | ||
35 | + #dir="$libdir" | ||
36 | + #absdir="$libdir" | ||
37 | fi | ||
38 | test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes | ||
39 | else | ||
40 | @@ -5942,8 +5952,6 @@ | ||
41 | add="$libdir/$linklib" | ||
42 | fi | ||
43 | else | ||
44 | - # We cannot seem to hardcode it, guess we'll fake it. | ||
45 | - add_dir="-L$libdir" | ||
46 | # Try looking first in the location we're being installed to. | ||
47 | if test -n "$inst_prefix_dir"; then | ||
48 | case $libdir in | ||
49 | @@ -6089,7 +6097,17 @@ | ||
50 | fi | ||
51 | ;; | ||
52 | *) | ||
53 | - path="-L$absdir/$objdir" | ||
54 | + # OE sets installed=no in staging. We need to look in $objdir and $absdir, | ||
55 | + # preferring $objdir. RP 31/04/2008 | ||
56 | + if test -f "$absdir/$objdir/$depdepl" ; then | ||
57 | + depdepl="$absdir/$objdir/$depdepl" | ||
58 | + path="-L$absdir/$objdir" | ||
59 | + elif test -f "$absdir/$depdepl" ; then | ||
60 | + depdepl="$absdir/$depdepl" | ||
61 | + path="-L$absdir" | ||
62 | + else | ||
63 | + path="-L$absdir/$objdir" | ||
64 | + fi | ||
65 | ;; | ||
66 | esac | ||
67 | else | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-mips-pie.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-mips-pie.patch new file mode 100644 index 0000000000..c71f0ad4db --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-mips-pie.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | # "-fPIE" always triggers segmentation fault in ld.so.1 on mips platform, | ||
2 | # which was first saw on dbus-daemon. Below borrow the binutils fix from | ||
3 | # binutils bugzilla: | ||
4 | # | ||
5 | # http://sourceware.org/bugzilla/show_bug.cgi?id=10858 | ||
6 | # | ||
7 | # Its commit message says: | ||
8 | # * elfxx-mips.c (mips_elf_create_dynamic_relocation): Use section | ||
9 | # sym dynindx for relocs against defined syms in PIEs. | ||
10 | # | ||
11 | # It's in upstream CVS now (rev 1.267), but not in current release | ||
12 | # | ||
13 | # By Kevin Tian <kevin.tian@intel.com>, 2010-07-15 | ||
14 | |||
15 | diff --git a/elfxx-mips.c b/elfxx-mips.c | ||
16 | index 3a1c8ba..f6c2c1c 100644 | ||
17 | --- binutils-2.20.1.orig/bfd/elfxx-mips.c | ||
18 | +++ binutils-2.20.1/bfd/elfxx-mips.c | ||
19 | @@ -5688,9 +5688,7 @@ mips_elf_create_dynamic_relocation (bfd *output_bfd, | ||
20 | |||
21 | /* We must now calculate the dynamic symbol table index to use | ||
22 | in the relocation. */ | ||
23 | - if (h != NULL | ||
24 | - && (!h->root.def_regular | ||
25 | - || (info->shared && !info->symbolic && !h->root.forced_local))) | ||
26 | + if (h != NULL && ! SYMBOL_REFERENCES_LOCAL (info, &h->root)) | ||
27 | { | ||
28 | indx = h->root.dynindx; | ||
29 | if (SGI_COMPAT (output_bfd)) | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-100-uclibc-conf.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-100-uclibc-conf.patch new file mode 100644 index 0000000000..8de04e0fe0 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-100-uclibc-conf.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | --- binutils-2.18.orig/configure | ||
2 | +++ binutils-2.18/configure | ||
3 | @@ -2206,7 +2206,7 @@ | ||
4 | am33_2.0-*-linux*) | ||
5 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | ||
6 | ;; | ||
7 | - sh-*-linux*) | ||
8 | + sh*-*-linux*) | ||
9 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | ||
10 | ;; | ||
11 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | ||
12 | @@ -2504,7 +2504,7 @@ | ||
13 | romp-*-*) | ||
14 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" | ||
15 | ;; | ||
16 | - sh-*-* | sh64-*-*) | ||
17 | + sh*-*-* | sh64-*-*) | ||
18 | case "${host}" in | ||
19 | i[3456789]86-*-vsta) ;; # don't add gprof back in | ||
20 | i[3456789]86-*-go32*) ;; # don't add gprof back in | ||
21 | --- binutils-2.18.orig/gprof/configure | ||
22 | +++ binutils-2.18/gprof/configure | ||
23 | @@ -4124,6 +4124,11 @@ | ||
24 | lt_cv_deplibs_check_method=pass_all | ||
25 | ;; | ||
26 | |||
27 | +linux-uclibc*) | ||
28 | + lt_cv_deplibs_check_method=pass_all | ||
29 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
30 | + ;; | ||
31 | + | ||
32 | netbsd*) | ||
33 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
34 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-001_ld_makefile_patch.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-001_ld_makefile_patch.patch new file mode 100644 index 0000000000..04a7e61e25 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-001_ld_makefile_patch.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 001_ld_makefile_patch.dpatch | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Description: correct where ld scripts are installed | ||
6 | ## DP: Author: Chris Chimelis <chris@debian.org> | ||
7 | ## DP: Upstream status: N/A | ||
8 | ## DP: Date: ?? | ||
9 | |||
10 | if [ $# -ne 1 ]; then | ||
11 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
12 | exit 1 | ||
13 | fi | ||
14 | |||
15 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
16 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
17 | |||
18 | case "$1" in | ||
19 | -patch) patch $patch_opts -p1 < $0;; | ||
20 | -unpatch) patch $patch_opts -p1 -R < $0;; | ||
21 | *) | ||
22 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
23 | exit 1;; | ||
24 | esac | ||
25 | |||
26 | exit 0 | ||
27 | |||
28 | @DPATCH@ | ||
29 | --- binutils-2.16.91.0.1/ld/Makefile.am | ||
30 | +++ binutils-2.16.91.0.1/ld/Makefile.am | ||
31 | @@ -20,7 +20,7 @@ | ||
32 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
33 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
34 | # directives need to be different for native and cross linkers. | ||
35 | -scriptdir = $(tooldir)/lib | ||
36 | +scriptdir = $(libdir) | ||
37 | |||
38 | EMUL = @EMUL@ | ||
39 | EMULATION_OFILES = @EMULATION_OFILES@ | ||
40 | --- binutils-2.16.91.0.1/ld/Makefile.in | ||
41 | +++ binutils-2.16.91.0.1/ld/Makefile.in | ||
42 | @@ -268,7 +268,7 @@ | ||
43 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
44 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
45 | # directives need to be different for native and cross linkers. | ||
46 | -scriptdir = $(tooldir)/lib | ||
47 | +scriptdir = $(libdir) | ||
48 | BASEDIR = $(srcdir)/.. | ||
49 | BFDDIR = $(BASEDIR)/bfd | ||
50 | INCDIR = $(BASEDIR)/include | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-006_better_file_error.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-006_better_file_error.patch new file mode 100644 index 0000000000..f337611edf --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-006_better_file_error.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 006_better_file_error.dpatch by David Kimdon <dwhedon@gordian.com> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Specify which filename is causing an error if the filename is a | ||
6 | ## DP: directory. (#45832) | ||
7 | |||
8 | if [ $# -ne 1 ]; then | ||
9 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
10 | exit 1 | ||
11 | fi | ||
12 | |||
13 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
14 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
15 | |||
16 | case "$1" in | ||
17 | -patch) patch $patch_opts -p1 < $0;; | ||
18 | -unpatch) patch $patch_opts -p1 -R < $0;; | ||
19 | *) | ||
20 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
21 | exit 1;; | ||
22 | esac | ||
23 | |||
24 | exit 0 | ||
25 | |||
26 | @DPATCH@ | ||
27 | diff -urNad /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/opncls.c binutils-2.14.90.0.6/bfd/opncls.c | ||
28 | --- /home/james/debian/packages/binutils/binutils-2.14.90.0.6/bfd/opncls.c 2003-07-23 16:08:09.000000000 +0100 | ||
29 | +++ binutils-2.14.90.0.6/bfd/opncls.c 2003-09-10 22:35:00.000000000 +0100 | ||
30 | @@ -150,6 +150,13 @@ | ||
31 | { | ||
32 | bfd *nbfd; | ||
33 | const bfd_target *target_vec; | ||
34 | + struct stat s; | ||
35 | + | ||
36 | + if (stat (filename, &s) == 0) | ||
37 | + if (S_ISDIR(s.st_mode)) { | ||
38 | + bfd_set_error (bfd_error_file_not_recognized); | ||
39 | + return NULL; | ||
40 | + } | ||
41 | |||
42 | nbfd = _bfd_new_bfd (); | ||
43 | if (nbfd == NULL) | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-012_check_ldrunpath_length.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-012_check_ldrunpath_length.patch new file mode 100644 index 0000000000..498651a90c --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-300-012_check_ldrunpath_length.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 012_check_ldrunpath_length.dpatch by Chris Chimelis <chris@debian.org> | ||
3 | ## | ||
4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
5 | ## DP: Only generate an RPATH entry if LD_RUN_PATH is not empty, for | ||
6 | ## DP: cases where -rpath isn't specified. (#151024) | ||
7 | |||
8 | if [ $# -ne 1 ]; then | ||
9 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
10 | exit 1 | ||
11 | fi | ||
12 | |||
13 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | ||
14 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | ||
15 | |||
16 | case "$1" in | ||
17 | -patch) patch $patch_opts -p1 < $0;; | ||
18 | -unpatch) patch $patch_opts -p1 -R < $0;; | ||
19 | *) | ||
20 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
21 | exit 1;; | ||
22 | esac | ||
23 | |||
24 | exit 0 | ||
25 | |||
26 | @DPATCH@ | ||
27 | diff -urNad /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em binutils-2.15/ld/emultempl/elf32.em | ||
28 | --- /home/james/debian/packages/binutils/new/binutils-2.15/ld/emultempl/elf32.em 2004-05-21 23:12:58.000000000 +0100 | ||
29 | +++ binutils-2.15/ld/emultempl/elf32.em 2004-05-21 23:12:59.000000000 +0100 | ||
30 | @@ -692,6 +692,8 @@ | ||
31 | && command_line.rpath == NULL) | ||
32 | { | ||
33 | lib_path = (const char *) getenv ("LD_RUN_PATH"); | ||
34 | + if ((lib_path) && (strlen (lib_path) == 0)) | ||
35 | + lib_path = NULL; | ||
36 | if (gld${EMULATION_NAME}_search_needed (lib_path, &n, | ||
37 | force)) | ||
38 | break; | ||
39 | @@ -871,6 +873,8 @@ | ||
40 | rpath = command_line.rpath; | ||
41 | if (rpath == NULL) | ||
42 | rpath = (const char *) getenv ("LD_RUN_PATH"); | ||
43 | + if ((rpath) && (strlen (rpath) == 0)) | ||
44 | + rpath = NULL; | ||
45 | if (! (bfd_elf_size_dynamic_sections | ||
46 | (output_bfd, command_line.soname, rpath, | ||
47 | command_line.filter_shlib, | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-gas-needs-libm.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-gas-needs-libm.patch new file mode 100644 index 0000000000..db838cf20c --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-uclibc-gas-needs-libm.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Source: Khem Raj <raj.khem@gmail.com> | ||
2 | Disposition: submit upstream. | ||
3 | |||
4 | Description: | ||
5 | |||
6 | We do not need to have the libtool patch anymore for binutils after | ||
7 | libtool has been updated upstream it include support for it. However | ||
8 | for building gas natively on uclibc systems we have to link it with | ||
9 | -lm so that it picks up missing symbols. | ||
10 | |||
11 | /local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double': | ||
12 | floatformat.c:(.text+0x1ec): undefined reference to `frexp' | ||
13 | floatformat.c:(.text+0x2f8): undefined reference to `ldexp' | ||
14 | /local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double': | ||
15 | floatformat.c:(.text+0x38a): undefined reference to `ldexp' | ||
16 | floatformat.c:(.text+0x3d2): undefined reference to `ldexp' | ||
17 | floatformat.c:(.text+0x43e): undefined reference to `ldexp' floatformat.c:(.text+0x4e2): undefined reference to `ldexp' | ||
18 | collect2: ld returned 1 exit status | ||
19 | make[4]: *** [as-new] Error 1 | ||
20 | |||
21 | Index: binutils-2.17.50/gas/configure.tgt | ||
22 | =================================================================== | ||
23 | --- binutils-2.17.50.orig/gas/configure.tgt | ||
24 | +++ binutils-2.17.50/gas/configure.tgt | ||
25 | @@ -408,6 +408,12 @@ case ${generic_target} in | ||
26 | *-*-netware) fmt=elf em=netware ;; | ||
27 | esac | ||
28 | |||
29 | +case ${generic_target} in | ||
30 | + arm-*-*uclibc*) | ||
31 | + need_libm=yes | ||
32 | + ;; | ||
33 | +esac | ||
34 | + | ||
35 | case ${cpu_type} in | ||
36 | alpha | arm | i386 | ia64 | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k) | ||
37 | bfd_gas=yes | ||
38 | |||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-x86_64_i386_biarch.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-x86_64_i386_biarch.patch new file mode 100644 index 0000000000..4cd9e22438 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-x86_64_i386_biarch.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 127_x86_64_i386_biarch.dpatch | ||
3 | ## | ||
4 | ## DP: Description: Add (/usr)/lib32 to the search paths on x86_64. | ||
5 | ## DP: Author: Aurelien Jarno <aurel32.debian.org> | ||
6 | ## DP: Upstream status: Debian specific | ||
7 | # | ||
8 | # Hacked to apply with quilt | ||
9 | # Adapted to binutils 2.18.50.0.7 | ||
10 | |||
11 | --- binutils/ld/emulparams/elf_i386.sh | ||
12 | +++ binutils/ld/emulparams/elf_i386.sh | ||
13 | @@ -12,3 +12,13 @@ | ||
14 | SEPARATE_GOTPLT=12 | ||
15 | SHARABLE_SECTIONS=yes | ||
16 | IREL_IN_PLT= | ||
17 | + | ||
18 | +# Linux modify the default library search path to first include | ||
19 | +# a 32-bit specific directory. | ||
20 | +case "$target" in | ||
21 | + x86_64*-linux* | i[3-7]86*-linux* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu) | ||
22 | + case "$EMULATION_NAME" in | ||
23 | + *i386*) LIBPATH_SUFFIX=32 ;; | ||
24 | + esac | ||
25 | + ;; | ||
26 | +esac | ||
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/libiberty_path_fix.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/libiberty_path_fix.patch new file mode 100644 index 0000000000..36a14d7a18 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.20.1/libiberty_path_fix.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | don't let the distro compiler point to the wrong installation location | ||
2 | |||
3 | Thanks to RP for helping find the source code causing the issue. | ||
4 | |||
5 | 2010/08/13 | ||
6 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
7 | Index: binutils-2.20.1/libiberty/Makefile.in | ||
8 | =================================================================== | ||
9 | --- binutils-2.20.1.orig/libiberty/Makefile.in | ||
10 | +++ binutils-2.20.1/libiberty/Makefile.in | ||
11 | @@ -327,7 +327,8 @@ install: install_to_$(INSTALL_DEST) inst | ||
12 | # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the | ||
13 | # default multilib, so we have to take CFLAGS into account as well, | ||
14 | # since it will be passed the multilib flags. | ||
15 | -MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` | ||
16 | +#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory` | ||
17 | +MULTIOSDIR = "" | ||
18 | install_to_libdir: all | ||
19 | ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR) | ||
20 | $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n | ||