summaryrefslogtreecommitdiff
path: root/gcc/config/freebsd-spec.h
diff options
context:
space:
mode:
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-22 16:28:26 +0000
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-22 16:28:26 +0000
commitfb4bac8b998b7dd65c229462d80b51f72594f818 (patch)
tree015c1787a0666c3af733e84bc0f39d8a74838a08 /gcc/config/freebsd-spec.h
parenteb9c45910b02aeaf8bbf248d5dee4ebbec8b11dc (diff)
downloadgcc-fb4bac8b998b7dd65c229462d80b51f72594f818.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152027 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/freebsd-spec.h')
-rw-r--r--gcc/config/freebsd-spec.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h
index c726a158c6b..84d81278af8 100644
--- a/gcc/config/freebsd-spec.h
+++ b/gcc/config/freebsd-spec.h
@@ -148,3 +148,12 @@ is built with the --enable-threads configure-time option.} \
#else
#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
#endif
+
+#if defined(HAVE_LD_EH_FRAME_HDR)
+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
+#endif
+
+/* Use --as-needed -lgcc_s for eh support. */
+#ifdef HAVE_LD_AS_NEEDED
+#define USE_LD_AS_NEEDED 1
+#endif