summaryrefslogtreecommitdiffstats
path: root/docs/manual/adding-packages-autotools.txt
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-15 18:38:02 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-08-17 09:18:29 +0200
commitfea35ce67317aa0eee678fb9440814d1346fb2fb (patch)
tree84343a7a9fbedd441b5465e3894ceb6f0df91f18 /docs/manual/adding-packages-autotools.txt
parent4bb2a05e8133f2f553b8e0cd6af53dfa8b8208b1 (diff)
downloadbuildroot-fea35ce67317aa0eee678fb9440814d1346fb2fb.tar.gz
buildroot-fea35ce67317aa0eee678fb9440814d1346fb2fb.zip
gcc/4.7: fix C++ exceptions and pthread_exit()
Following the introduction of the support for the musl C library, the support of C++ exceptions or features like pthread_exit() got broken even with other libraries such as glibc. This was reported as bug #7028. The problem was caused by the gcc patch needed to add support for musl, which modified the libgcc/unwind-dw2-fde-dip.c logic to decide whether USE_PT_GNU_EH_FRAME should be enabled or not. It completely removed the existing logic, replacing it by a single logic based on the definition of TARGET_DL_ITERATE_PHDR. However, this constant gets defined by the configure script only for Solaris, or Linux Musl platforms. For glibc/uClibc, the configure script does not define it, and therefore USE_PT_GNU_EH_FRAME is not defined, causing issues with exception handling. This patch fixes that by restoring all the logic of libgcc/unwind-dw2-fde-dip.c, and just adding the musl logic as one more case. It has been successfully runtime tested using the two code examples provided in bug #7208, with uClibc, musl and glibc. Cc: Krzysztof Wrzalik <kwrzalik@gmail.com> Cc: David Bachelart <david.bachelart@bbright.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'docs/manual/adding-packages-autotools.txt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud