aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/config/freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/config/freebsd.h')
-rw-r--r--gcc-4.9/gcc/config/freebsd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/freebsd.h b/gcc-4.9/gcc/config/freebsd.h
index c872a6da4..7c032a510 100644
--- a/gcc-4.9/gcc/config/freebsd.h
+++ b/gcc-4.9/gcc/config/freebsd.h
@@ -45,8 +45,12 @@ along with GCC; see the file COPYING3. If not see
#define LIB_SPEC FBSD_LIB_SPEC
#if defined(HAVE_LD_EH_FRAME_HDR)
+#ifdef USE_EH_FRAME_HDR_FOR_STATIC
+#define LINK_EH_SPEC "--eh-frame-hdr "
+#else
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif
+#endif
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"