GregorR / musl-gcc-patches

Patches to GCC necessary for supporting musl.
21 stars 10 forks source link

dliterate-phdr.patch seems to break glibc c++ exception handling #5

Open rofl0r opened 10 years ago

rofl0r commented 10 years ago

https://bugs.busybox.net/show_bug.cgi?id=7208

rofl0r commented 10 years ago

more info (origin of the problem is not mentioned though:) http://www.openwall.com/lists/musl/2014/06/15/1

yann-morin-1998 commented 10 years ago

In comment #12 in that bug report ( https://bugs.busybox.net/show_bug.cgi?id=7208#c12 where the thread to the list is mentioned ), there is a bit more info on a possible solution (quoting):

+#if (!defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR)) || defined(gnu_linux)

define USE_PT_GNU_EH_FRAME

or something closer to whatever the upstream logic is for glibc.

Cheers. ;-)