I have committed the attached to add a LINK_EH_SPEC enabling --eh-frame-hdr in the NetBSD config.

Bootstrapped and tested on x86_64-unknown-netbsd6.1.

   /Krister


2016-12-19  Krister Walfridsson  <krister.walfrids...@gmail.com>

        * config/netbsd.h (LINK_EH_SPEC): Define.
Index: gcc/config/netbsd.h
===================================================================
--- gcc/config/netbsd.h (revision 243790)
+++ gcc/config/netbsd.h (revision 243791)
@@ -139,6 +139,10 @@
 #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
 

Reply via email to