]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
authorMark Kettenis <kettenis@openbsd.org>
Fri, 5 Oct 2012 23:35:55 +0000 (23:35 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Fri, 5 Oct 2012 23:35:55 +0000 (23:35 +0000)
* config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
* unwind-dw2-fde-dip.c: Don't include <elf.h> on OpenBSD.
(USE_PT_GNU_EH_FRAME): Define for OpenBSD.
(ElfW): Likewise.

From-SVN: r192148

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

index 7bd8312921a5215142bf7f151bfd2d0dac3b0600..0b6f592eb2fcd04e7a16556ce65906678eb1d983 100644 (file)
@@ -1,3 +1,10 @@
+2012-10-06  Mark Kettenis  <kettenis@openbsd.org>
+
+       * config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
+       * unwind-dw2-fde-dip.c: Don't include <elf.h> on OpenBSD.
+       (USE_PT_GNU_EH_FRAME): Define for OpenBSD.
+       (ElfW): Likewise.
+
 2012-10-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        PR other/53889
index 368902467fb69f2089a0ecfb7079d728ecc72564..763f6c3a252223e149eb9b995679f455051bfe7a 100644 (file)
@@ -213,7 +213,7 @@ case ${host} in
   esac
   ;;
 *-*-openbsd*)
-  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic"
+  tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
   case ${target_thread_file} in
     posix)
       tmake_file="$tmake_file t-openbsd-thread"
index 92f8ab546449618a53fcf864924eac31308db5bf..2ce3af80b15de380fcf0bfe76187dd3258d51f28 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "tconfig.h"
 #include "tsystem.h"
-#ifndef inhibit_libc
+#if !defined(inhibit_libc) && !defined(__OpenBSD__)
 #include <elf.h>               /* Get DT_CONFIG.  */
 #endif
 #include "coretypes.h"
 # define USE_PT_GNU_EH_FRAME
 #endif
 
+#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
+    && defined(__OpenBSD__)
+# define ElfW(type) Elf_##type
+# define USE_PT_GNU_EH_FRAME
+#endif
+
 #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
     && defined(TARGET_DL_ITERATE_PHDR) \
     && defined(__sun__) && defined(__svr4__)