diff options
author | Jonathan Liu <net147@gmail.com> | 2015-03-09 15:50:18 +1100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-16 17:41:57 +0000 |
commit | 05a16911ffdd41e1ac5fe4365ccc45ea27a99996 (patch) | |
tree | 7895af0fd5339455fb5a1e1e2d00c70ed12efee5 /meta/recipes-support/libunwind | |
parent | 38382e0f15bbba4b2e4188f41398a00ad70cda12 (diff) | |
download | poky-05a16911ffdd41e1ac5fe4365ccc45ea27a99996.tar.gz |
libunwind: backport patch to link against libgcc_s intead of libgcc
(From OE-Core rev: 9906f949627b64f9fc36bc129bb37c8dd84dc27c)
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libunwind')
-rw-r--r-- | meta/recipes-support/libunwind/libunwind-1.1/Link-libunwind-to-libgcc_s-rather-than-libgcc.patch | 42 | ||||
-rw-r--r-- | meta/recipes-support/libunwind/libunwind_1.1.bb | 1 |
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind-1.1/Link-libunwind-to-libgcc_s-rather-than-libgcc.patch b/meta/recipes-support/libunwind/libunwind-1.1/Link-libunwind-to-libgcc_s-rather-than-libgcc.patch new file mode 100644 index 0000000000..0e55c91b80 --- /dev/null +++ b/meta/recipes-support/libunwind/libunwind-1.1/Link-libunwind-to-libgcc_s-rather-than-libgcc.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 508ca17a7be01d1cc960d9a07d0af4513948fb8d Mon Sep 17 00:00:00 2001 | ||
2 | From: Thierry Reding <treding@nvidia.com> | ||
3 | Date: Fri, 27 Jun 2014 08:40:33 +0200 | ||
4 | Subject: [PATCH] Link libunwind to libgcc_s rather than libgcc | ||
5 | |||
6 | For some architectures, -lgcc and -lgcc_s are not equivalent. On ARM for | ||
7 | example, libgcc_s.so.1 contains some symbols needed by libunwind which | ||
8 | are not present in libgcc. | ||
9 | |||
10 | This causes the following link error when building the X.Org X server | ||
11 | with libunwind support: | ||
12 | |||
13 | CCLD Xorg | ||
14 | /usr/lib/libunwind.so: undefined reference to `__aeabi_unwind_cpp_pr0' | ||
15 | /usr/lib/libunwind.so: undefined reference to `__aeabi_unwind_cpp_pr1' | ||
16 | |||
17 | Linking against libgcc_s explicitly solves this problem. | ||
18 | |||
19 | Upstream-Status: Backport | ||
20 | |||
21 | Signed-off-by: Thierry Reding <treding@nvidia.com> | ||
22 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
23 | --- | ||
24 | configure.ac | 2 +- | ||
25 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
26 | |||
27 | diff --git a/configure.ac b/configure.ac | ||
28 | index cffe19b..3beb5f2 100644 | ||
29 | --- a/configure.ac | ||
30 | +++ b/configure.ac | ||
31 | @@ -258,7 +258,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[#ifndef __INTEL_COMPILER | ||
32 | |||
33 | if test x$GCC = xyes -a x$intel_compiler != xyes; then | ||
34 | CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare" | ||
35 | - LIBCRTS="-lgcc" | ||
36 | + LIBCRTS="-lgcc_s" | ||
37 | fi | ||
38 | AC_MSG_RESULT([$intel_compiler]) | ||
39 | |||
40 | -- | ||
41 | 2.3.2 | ||
42 | |||
diff --git a/meta/recipes-support/libunwind/libunwind_1.1.bb b/meta/recipes-support/libunwind/libunwind_1.1.bb index 5b54dcbb21..ee6f522d68 100644 --- a/meta/recipes-support/libunwind/libunwind_1.1.bb +++ b/meta/recipes-support/libunwind/libunwind_1.1.bb | |||
@@ -4,6 +4,7 @@ SRC_URI += "\ | |||
4 | file://Support-building-with-older-compilers.patch \ | 4 | file://Support-building-with-older-compilers.patch \ |
5 | file://AArch64-port.patch \ | 5 | file://AArch64-port.patch \ |
6 | file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch \ | 6 | file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch \ |
7 | file://Link-libunwind-to-libgcc_s-rather-than-libgcc.patch \ | ||
7 | " | 8 | " |
8 | 9 | ||
9 | SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce" | 10 | SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce" |