summaryrefslogtreecommitdiff
path: root/gcc/unwind-dw2-fde-glibc.c
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2009-09-22 16:28:26 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2009-09-22 16:28:26 +0000
commit2208d2ac9546dea9bbce5a6a441b665269b8609b (patch)
tree015c1787a0666c3af733e84bc0f39d8a74838a08 /gcc/unwind-dw2-fde-glibc.c
parent5d0001f01521eb923c16cd69c807c655ae9acb54 (diff)
downloadgcc-2208d2ac9546dea9bbce5a6a441b665269b8609b.tar.gz
unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2009-09-22 Loren J. Rittle <ljrittle@acm.org> * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME. Enable a new case for __FreeBSD__ >= 7. * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7. * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP. * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC and USE_LD_AS_NEEDED. From-SVN: r152027
Diffstat (limited to 'gcc/unwind-dw2-fde-glibc.c')
-rw-r--r--gcc/unwind-dw2-fde-glibc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/unwind-dw2-fde-glibc.c b/gcc/unwind-dw2-fde-glibc.c
index 418f0300108..ad6ecd50d59 100644
--- a/gcc/unwind-dw2-fde-glibc.c
+++ b/gcc/unwind-dw2-fde-glibc.c
@@ -48,6 +48,16 @@
#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+# define USE_PT_GNU_EH_FRAME
+#endif
+
+#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
+ && defined(__FreeBSD__) && __FreeBSD__ >= 7
+# define ElfW __ElfN
+# define USE_PT_GNU_EH_FRAME
+#endif
+
+#if defined(USE_PT_GNU_EH_FRAME)
#ifndef __RELOC_POINTER
# define __RELOC_POINTER(ptr, base) ((ptr) + (base))