config.host (*-*-netbsd*): Add t-eh-dw2-dip to tmake_file.
authorKrister Walfridsson <krister.walfridsson@gmail.com>
Mon, 19 Dec 2016 09:21:09 +0000 (09:21 +0000)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Mon, 19 Dec 2016 09:21:09 +0000 (09:21 +0000)
2016-12-19  Krister Walfridsson  <krister.walfridsson@gmail.com>

* config.host (*-*-netbsd*): Add t-eh-dw2-dip to tmake_file.
* crtstuff.c (BSD_DL_ITERATE_PHDR_AVAILABLE): Define for NetBSD.
* unwind-dw2-fde-dip.c (USE_PT_GNU_EH_FRAME, ElfW): Likewise.

From-SVN: r243790

libgcc/ChangeLog
libgcc/config.host
libgcc/crtstuff.c
libgcc/unwind-dw2-fde-dip.c

index 1c9646db4ad239b0ee9fdcf7c2e9f5a4b6a54876..44cbfdbac4a546521a77491d3f2b32bc62391dce 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
+
+       * config.host (*-*-netbsd*): Add t-eh-dw2-dip to tmake_file.
+       * crtstuff.c (BSD_DL_ITERATE_PHDR_AVAILABLE): Define for NetBSD.
+       * unwind-dw2-fde-dip.c (USE_PT_GNU_EH_FRAME, ElfW): Likewise.
+
 2016-12-17  Matthias Klose  <doko@ubuntu.com>
 
        * config/arc/gmon: Remove empty directory.
index a659bb57f6a0ebb05d0454459ab7f24612e5b359..d67edfbc4434f7d0f4b34f5f7cfe77bdb3ad6efc 100644 (file)
@@ -240,7 +240,8 @@ case ${host} in
   extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
   ;;
 *-*-netbsd*)
-  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
+  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
+  tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
   # NetBSD 1.7 and later are set up to use GCC's crtstuff for
   # ELF configurations.  We will clear extra_parts in the
   # a.out configurations.
index 564418191d9698a694275d0f42c9ecbc07719d36..be15a1915a7c0745dfb5b8a278fb5ea65b55f19f 100644 (file)
@@ -81,7 +81,7 @@ call_ ## FUNC (void)                                  \
 #endif
 
 #if defined(TARGET_DL_ITERATE_PHDR) && \
-   (defined(__DragonFly__) || defined(__FreeBSD__))
+   (defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__))
 #define BSD_DL_ITERATE_PHDR_AVAILABLE
 #endif
  
index 801bce8fa3d0510ae3fb43000444b331472c3b77..3df501d9cb6bba73374a535cd233e2d9d97cae06 100644 (file)
@@ -71,7 +71,7 @@
 #endif
 
 #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
-    && defined(__OpenBSD__)
+    && (defined(__OpenBSD__) || defined(__NetBSD__))
 # define ElfW(type) Elf_##type
 # define USE_PT_GNU_EH_FRAME
 #endif