netbsd.h (LINK_EH_SPEC): Define.
authorKrister Walfridsson <krister.walfridsson@gmail.com>
Mon, 19 Dec 2016 09:39:17 +0000 (09:39 +0000)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Mon, 19 Dec 2016 09:39:17 +0000 (09:39 +0000)
2016-12-19  Krister Walfridsson  <krister.walfridsson@gmail.com>

* config/netbsd.h (LINK_EH_SPEC): Define.

From-SVN: r243791

gcc/ChangeLog
gcc/config/netbsd.h

index 5cd7c33a23f2938a2482e6404daccf3b494bae70..57a1578caa319363aeaf844b6804e0d66e16e9af 100644 (file)
@@ -1,3 +1,7 @@
+2016-12-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
+
+       * config/netbsd.h (LINK_EH_SPEC): Define.
+
 2016-12-18  Eric Botcazou  <ebotcazou@adacore.com>
 
        * lra-constraints.c (process_address): Add forward declaration.
index f2d6cc6a101510d54ffa7899282e4a87f9da47c3..991cab65520ff98f6344b440167d32133570b991 100644 (file)
@@ -139,6 +139,10 @@ along with GCC; see the file COPYING3.  If not see
 #undef LIBGCC_SPEC
 #define LIBGCC_SPEC NETBSD_LIBGCC_SPEC
 
+#if defined(HAVE_LD_EH_FRAME_HDR)
+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
+#endif
+
 #undef TARGET_LIBC_HAS_FUNCTION
 #define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function