summaryrefslogtreecommitdiffstats
path: root/main/gcc/211-unwind.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/211-unwind.patch')
-rw-r--r--main/gcc/211-unwind.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/gcc/211-unwind.patch b/main/gcc/211-unwind.patch
new file mode 100644
index 000000000..d708c561f
--- /dev/null
+++ b/main/gcc/211-unwind.patch
@@ -0,0 +1,17 @@
+diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c
+index e1e566b..137dced 100644
+--- a/libgcc/unwind-dw2-fde-dip.c
++++ b/libgcc/unwind-dw2-fde-dip.c
+@@ -59,6 +59,12 @@
+
+ #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
+ && defined(TARGET_DL_ITERATE_PHDR) \
++ && defined(__linux__)
++# define USE_PT_GNU_EH_FRAME
++#endif
++
++#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
++ && defined(TARGET_DL_ITERATE_PHDR) \
+ && (defined(__DragonFly__) || defined(__FreeBSD__))
+ # define ElfW __ElfN
+ # define USE_PT_GNU_EH_FRAME