md_unwind_header=i386/dragonfly-unwind.h
;;
i[34567]86-*-freebsd*)
- tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
+ tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff i386/t-msabi"
md_unwind_header=i386/freebsd-unwind.h
;;
x86_64-*-freebsd*)
- tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
+ tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff i386/t-msabi"
md_unwind_header=i386/freebsd-unwind.h
;;
i[34567]86-*-netbsdelf*)
#define PASTE2(a, b) PASTE2a(a, b)
#define PASTE2a(a, b) a ## b
-/* These macros currently support GNU/Linux, Solaris and Darwin. */
+/* These macros currently support GNU/Linux, Solaris, FreeBSD, and Darwin. */
#ifdef __ELF__
# define FN_TYPE(fn) .type fn,@function
#endif /* __x86_64__ */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__))
.section .note.GNU-stack,"",@progbits
.previous
#endif
#endif /* __x86_64__ */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__))
.section .note.GNU-stack,"",@progbits
.previous
#endif
#endif /* __x86_64__ */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__))
.section .note.GNU-stack,"",@progbits
.previous
#endif
#endif /* __x86_64__ */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__))
.section .note.GNU-stack,"",@progbits
.previous
#endif
#endif /* __x86_64__ */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__))
.section .note.GNU-stack,"",@progbits
.previous
#endif
#endif /* __x86_64__ */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__))
.section .note.GNU-stack,"",@progbits
.previous
#endif