aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/config/gnu-user.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/config/gnu-user.h')
-rw-r--r--gcc-4.9/gcc/config/gnu-user.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/gnu-user.h b/gcc-4.9/gcc/config/gnu-user.h
index a1955a7e7..2af0a54ed 100644
--- a/gcc-4.9/gcc/config/gnu-user.h
+++ b/gcc-4.9/gcc/config/gnu-user.h
@@ -94,8 +94,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define LIB_SPEC GNU_USER_TARGET_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
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC \