summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libunwind
Commit message (Collapse)AuthorAgeFilesLines
* libunwind: Link with libucontext on muslKhem Raj2021-03-152-0/+2
| | | | | | | | | | | | Functions like unw_getcontext in libunwind call getcontext() which are not part of musl C library like glibc, however there is a supplimental library providing these functions called libucontext, therefore link libunwind with a static version of this library to resolve such symbols, this inturn helps packages needing libunwind, who look for certain APIs in libunwind during configure e.g. heaptrack Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Do not assume libdir for ppc64Khem Raj2021-03-142-0/+36
| | | | | | | This ensures that build respects OE's choice for libdir Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Disable for riscvKhem Raj2021-02-191-0/+3
| | | | | | | riscv port does not exist yet Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: upgrade 1.4.0 -> 1.5.0zangrc2020-11-244-526/+2
| | | | | | | | | | 0001-Fix-compilation-with-fno-common.patch 0002-backtrace-Use-only-with-glibc-and-uclibc.patch sigset_t.patch Removed since these are included in 1.5.0 Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Backport a fix for -fno-common option to compileKhem Raj2020-08-062-0/+449
| | | | | | | | | | | defaults for gcc is to use -fno-common this ensures that it keeps building with gcc -fno-common Fixes src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Fix build on aarch64/muslKhem Raj2020-06-052-0/+29
| | | | | | | Backport a patch from upstream Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: upgrade 1.3.1 -> 1.4.0Alexander Kanavin2020-06-032-12/+19
| | | | | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: apply configure over-ride to both big and little endian ARMAndre McCurdy2019-09-181-0/+1
| | | | | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Fix MIT license file checksumWes Lindauer2019-08-211-1/+1
| | | | | | MIT license files must include the copyright notice. Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Upgrade to 1.3.1 releaseKhem Raj2019-02-128-135/+73
| | | | | | | | - Drop upstreamed patch to enable/disable tests - Forward port rest of patches to new version Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Enable building static archive on muslKhem Raj2018-12-081-1/+1
| | | | | | | | | | This ensures that we have .a for libunwind on musl targets, this is used for stack unwinding infra e.g. in rust Help compiling rust compiler and standard library from meta-rust Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Fix build with musl+security flagsKhem Raj2018-08-151-0/+2
| | | | | | | | Fixes src/os-linux.c:63: undefined reference to `__stack_chk_fail_local' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Drop adding libssp to linker flagsKhem Raj2018-05-091-2/+0
| | | | | | | This is no longer needed as gcc provided libssp is not built Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: refresh patchesRoss Burton2018-03-111-13/+10
| | | | | | | | | | | | | | | | | | The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Fix multilib header conflict - libunwind.hJagadeesh Krishnanjanappa2018-02-241-1/+5
| | | | | | | | | | | | libunwind.h conflicts between 32-bit and 64-bit versions This patch solves below error: -- snip -- file /usr/include/libunwind.h conflicts between attempted installs of libunwind-dev-1.2-r0.core2_64 and lib32-libunwind-dev-1.2-r0.i586 -- snip -- Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: 1.2 -> 1.2.1Huang Qiyu2018-01-292-137/+2
| | | | | | | | 1.Upgrade libunwind from 1.2 to 1.2.1. 2.Delete fix-mips.patch, since it is integrated upstream. Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Fix PACKAGECONFIG option typoRichard Purdie2018-01-231-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Disable documentation explicitlyRichard Purdie2018-01-071-0/+1
| | | | | | | | We don't have latex2man in HOSTTOOLs so documentaion is never built but this dependency does cause problems on older releases like morty, pre-HOSTTOOLS. Document the configuration explicitly in master. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: We set -fPIE in security flags now if gcc is not configured for ↵Khem Raj2017-07-081-4/+0
| | | | | | default PIE Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libunwind: don't mess around with ARM atomic detectionRoss Burton2017-06-091-5/+0
| | | | | | | | | | | This recipe explictly sets -DAO_USE_PTHREAD_DEFS on ARM, but with libunwind 1.2 this causes the linker to fail: hidden symbol `__sync_synchronize' in libgcc.a(linux-atomic.o) is referenced by DSO Removing these defines lets configure do the right thing and build libunwind. Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: fix build failure on MIPSRoss Burton2017-06-062-0/+135
| | | | Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: update to 1.2Alexander Kanavin2017-05-122-7/+4
| | | | | | | | | | Switch to using tarballs as git is unreliable (not responding right now). LICENSE file is gone; COPYING has an additional line on top with copyright attribution, the license text that follows has not changed. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: apply a patch to fix x32Christopher Larson2017-01-092-0/+32
| | | | | | | Apply patch to fix the X32 build from https://github.com/sjnewbury/x32 Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: fix build by linking with bfd instead of goldAndreas Müller2016-09-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | works around: <native-sysroot>/ld: error: Gperf-simple.o: cannot make copy relocation for protected symbol '_Uarm_local_addr_space', defined in ../src/.libs/libunwind-arm.so collect2: error: ld returned 1 exit status Makefile:1038: recipe for target 'Gperf-simple' failed make[1]: *** [Gperf-simple] Error 1 make[1]: *** Waiting for unfinished jobs.... <...> <native-sysroot>/ld: error: Lperf-simple.o: cannot make copy relocation for protected symbol '_ULarm_local_addr_space', defined in ../src/.libs/libunwind.so collect2: error: ld returned 1 exit status Makefile:1094: recipe for target 'Lperf-simple' failed make[1]: *** [Lperf-simple] Error 1 <...> ERROR: oe_runmake failed <native-sysroot>/ld: error: Gperf-trace.o: cannot make copy relocation for protected symbol '_Uarm_local_addr_space', defined in ../src/.libs/libunwind-arm.so collect2: error: ld returned 1 exit status Makefile:1042: recipe for target 'Gperf-trace' failed make[1]: *** [Gperf-trace] Error 1 <native-sysroot>/ld: error: Lperf-trace.o: cannot make copy relocation for protected symbol '_ULarm_local_addr_space', defined in ../src/.libs/libunwind.so collect2: error: ld returned 1 exit status Makefile:1098: recipe for target 'Lperf-trace' failed make[1]: *** [Lperf-trace] Error 1 <...> <native-sysroot>/ld: error: test-coredump-unwind.o: cannot make copy relocation for protected symbol '_UCD_accessors', defined in ../src/.libs/libunwind-coredump.so collect2: error: ld returned 1 exit status Makefile:1186: recipe for target 'test-coredump-unwind' failed Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Fix build race conflict with gcc and muslRichard Purdie2016-08-192-0/+38
| | | | | | | | | | | | | | | | Building libunwind, then gcc-runtime causes build failures. This is hard to fix since gcc-runtime wants the internal gcc unwind.h header but libunwind wants to provide this. There are differences in include behaviour between gcc and glibc which are by design. This patch hacks around the issue by looking for a define used during gcc-runtime's build and skipping to the internal header in that case. The patch is only enabled on musl and is the best workaround I could come up with to unblock failing builds on our autobuilder. [YOCTO #10129] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Do not use gold for linkingKhem Raj2016-08-101-9/+0
| | | | | | | | | | | | | | | | | This effectively reverts the commit 3dd233ac0c80393824100c54bb525236f8290fd2 gold now emits errors on copy relocs against protected symbols what ld.bfd did in past, however it seems its too conservative. This does not fix the case for folks who use gold as default linker, however it does make bintuls 2.27 work with default configuration of OE Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Port to ppc/muslKhem Raj2016-07-202-0/+249
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Add a confgure option for testsKhem Raj2016-05-132-2/+72
| | | | | | | | | Tests dont compile on musl due to its use of {get|set}context APIs, adding this option to disable tests helps it to compile Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Upgrade to 1.2rc1+Khem Raj2016-05-132-67/+0
| | | | | | | | | | This helps in compiling with gcc6 drop patches backported to 1.1 remove musl conditional patches, they should work on glibc too now Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Upgrade to 1.2rc1+Khem Raj2016-05-1312-2776/+37
| | | | | | | | | | This helps in compiling with gcc6 drop patches backported to 1.1 remove musl conditional patches, they should work on glibc too now Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: backport aarch64_be supportRuslan Bilovol2016-04-293-0/+69
| | | | | | | | Backport 2 patches from v1.2-rc1 tag of libunwind git repo. These patches add aarch64_be support to this package. Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Fix build on mips/mips64 for musl targetsKhem Raj2016-03-282-0/+91
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: Fix build with fstack-protector on muslKhem Raj2016-03-244-11/+99
| | | | | | | | | | | | | | | | | | libunwind makery inserts -nostdlib during linking which fails the build on musl when security flags are enabled since it remove ssp from linking, so add them explicitly to SECURITY_LDFLAGS disable tests for musl targets, tests use obsolete posix APIs e.g. getcontext patchout x86_local_resume() on x86, gets a working linunwind on x86, it seems that it wont work even in glibc case but lets leave it as it is for glibc and apply the patch only for musl Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Fix build on ppcKhem Raj2016-02-161-2/+2
| | | | | | | | | | | | gcc driver is fixed to pass correct options to linker to do secure plt linking when enabled. however this option --secure-plt is not supported by gold linker which is now passed by default from gcc driver. Hence the build fails when using gold. Therefore when we use gold then we do not use secure plt Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: backtrace APIs are glibc specificKhem Raj2016-01-222-0/+46
| | | | | | | Make backtrace() API's use conditional on glibc this helps make libunwind compile on musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* guile, mailx, gcc, opensp, gstreamer1.0-libav, libunwind: disable thumb ↵Martin Jansa2015-12-011-0/+4
| | | | | | | where it fails for qemuarm Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: fix build for qemuarmMartin Jansa2015-11-252-0/+63
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: add SUMMARYPaul Eggleton2015-11-161-0/+1
| | | | | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Security Advisory - libunwind - CVE-2015-3239Li Zhou2015-09-032-0/+30
| | | | | | | | | | | | libunwind: Invalid dwarf opcodes can cause references beyond the end of the array Off-by-one error in the dwarf_to_unw_regnum function in include/dwarf_i.h in libunwind 1.1 allows local users to have unspecified impact via invalid dwarf opcodes. Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libatomic-ops: move to recipes-support, fix recipe nameChristopher Larson2015-08-301-1/+1
| | | | | | | | | | | | - This recipe is useful for more than just pulseaudio, so move it to recipes-support. - Rename to the correct upstream name, which corresponds to the library name. Keep a PROVIDES of libatomics-ops for compatibility. (From OE-Core rev: 5014de67fa6da1672626e3ec92fc51430fca3262) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: always depend on libatomics-opsChristopher Larson2015-08-301-10/+1
| | | | | | | | | | | | | | | - Depend on libatomics-ops unconditionally for all archs, as it's used by more than just arm, and currently the configure script auto-detects and enables its use based on the existence of its header, resulting in non-deterministic builds. - Drop the ldflags bits which link against libatomic_ops, because libunwind doesn't actually link against it, nor does it need to, as it currently uses all inline functions from the header file. (From OE-Core rev: 83bb89502e2f05b8b78b14532ad96abc400ab264) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: don't use gold for mipsRobert Yang2015-04-281-1/+8
| | | | | | | | | | The gold doesn't work for mips or mips64: configure:3867: checking whether the C compiler works configure:3889: mips-poky-linux-gcc -meb -mabi=32 -mhard-float -march=mips32r2 --sysroot=/buildarea/lyang1/test_uni/tmp/sysroots/qemumips -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--as-needed -fuse-ld=gold conftest.c >&5 collect2: fatal error: cannot find 'ld' Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: use gold for all archsRobert Yang2015-04-211-4/+1
| | | | | | | | | | | | | | | | | At least the following boards have build errors without using gold: qemux86, qemux86-64, qemuarm, qemuaarch64, qemuppc. The error is: ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid ld: failed to set dynamic section sizes: Bad value ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid ld: failed to set dynamic section sizes: Bad value | collect2: error: ld returned 1 exit status So use gold for all archs to fix the problem. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: fix build with aarch64Robert Yang2015-04-171-0/+2
| | | | | | | | | | | | | | | Referred to RP's fix for x86 and x86-64: 34d517a5626ce2465f776367349bd9e66bf8ed1f libunwind: Build with gold to avoid build failures Fixed: aarch64-poky-linux/4.9.2/ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid aarch64-poky-linux/4.9.2/ld: failed to set dynamic section sizes: Bad value aarch64-poky-linux/4.9.2/ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid aarch64-poky-linux/4.9.2/ld: failed to set dynamic section sizes: Bad value | collect2: error: ld returned 1 exit status Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
* libunwind: Build with gold to avoid build failuresRichard Purdie2015-04-071-0/+3
| | | | | | | | | The library fails to build with binutils 2.25 and standard ld. This issue is fixed in gcc 5 with no plans to backport to gcc 4. Easiest workaround for now is to use gold as the linker for the library since gold does not have the issue. The bug is x86 only. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: use xz, because it fails to detect liblzma provided by lzmaAndreas Oberritter2015-03-241-1/+1
| | | | | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: backport patch to link against libgcc_s intead of libgccJonathan Liu2015-03-162-0/+43
| | | | | Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: Fix test case link failure on PowerPC with AltivecTing Liu2015-01-292-0/+29
| | | | | Signed-off-by: Ting Liu <ting.liu@freescale.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* libunwind: add aarch64 supportFathi Boudra2014-12-224-0/+2607
| | | | | | | | | | | * pass --enable-debug-frame on aarch64 architecture * include patches: - aarch64 port (backported from upstream) - Support-building-with-older-compilers (fix undefined reference to `unreachable' on older compilers) Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libunwind: add recipesChong Lu2014-09-102-0/+34
Add libunwind from meta-oe to oe-core, since perf depends on it. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>