summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-04-25 20:38:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-08 15:41:13 +0100
commitedcae40bf61109a63d43f59147b3de6c51750e14 (patch)
tree87e3444d2bdf0733e6ea6453a0bb5330030c70bf /meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch
parent4bf8253af7f5d28e81dd0c5d150712b36b14e741 (diff)
downloadpoky-edcae40bf61109a63d43f59147b3de6c51750e14.tar.gz
binutils: Upgrade 2.23.1 -> 2.23.2
(From OE-Core rev: 202f46b139ab20079e97cdeb147d59e23bcdfe01) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch b/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch
new file mode 100644
index 0000000000..3869faff0e
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-uclibc-gas-needs-libm.patch
@@ -0,0 +1,38 @@
1Source: Khem Raj <raj.khem@gmail.com>
2Disposition: submit upstream.
3Upstream-Status: Pending
4
5Description:
6
7We do not need to have the libtool patch anymore for binutils after
8libtool has been updated upstream it include support for it. However
9for building gas natively on uclibc systems we have to link it with
10-lm so that it picks up missing symbols.
11
12/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double':
13floatformat.c:(.text+0x1ec): undefined reference to `frexp'
14floatformat.c:(.text+0x2f8): undefined reference to `ldexp'
15/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double':
16floatformat.c:(.text+0x38a): undefined reference to `ldexp'
17floatformat.c:(.text+0x3d2): undefined reference to `ldexp'
18floatformat.c:(.text+0x43e): undefined reference to `ldexp' floatformat.c:(.text+0x4e2): undefined reference to `ldexp'
19collect2: ld returned 1 exit status
20make[4]: *** [as-new] Error 1
21
22Index: binutils-2.22/gas/configure.tgt
23===================================================================
24--- binutils-2.22.orig/gas/configure.tgt
25+++ binutils-2.22/gas/configure.tgt
26@@ -428,6 +428,12 @@ case ${generic_target} in
27 *-*-netware) fmt=elf em=netware ;;
28 esac
29
30+case ${generic_target} in
31+ arm-*-*uclibc*)
32+ need_libm=yes
33+ ;;
34+esac
35+
36 case ${cpu_type} in
37 alpha | arm | i386 | ia64 | microblaze | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)
38 bfd_gas=yes