the CVS repository, so it will be in the next public release of nasm. Bump PKGREVISION to 3.
61 lines
1.3 KiB
Text
61 lines
1.3 KiB
Text
$NetBSD: patch-ae,v 1.3 2007/01/06 15:11:58 jmmv Exp $
|
|
|
|
--- outform.h.orig 2005-01-15 23:15:51.000000000 +0100
|
|
+++ outform.h
|
|
@@ -57,7 +57,7 @@
|
|
|
|
/* ====configurable info begins here==== */
|
|
/* formats configurable:
|
|
- * bin,obj,elf,aout,aoutb,coff,win32,as86,rdf2 */
|
|
+ * bin,obj,elf,aout,aoutb,coff,win32,as86,rdf2,macho */
|
|
|
|
/* process options... */
|
|
|
|
@@ -98,6 +98,9 @@
|
|
#ifndef OF_IEEE
|
|
#define OF_IEEE
|
|
#endif
|
|
+#ifndef OF_MACHO
|
|
+#define OF_MACHO
|
|
+#endif
|
|
#endif /* OF_ALL */
|
|
|
|
/* turn on groups of formats specified.... */
|
|
@@ -141,6 +144,9 @@
|
|
#ifndef OF_IEEE
|
|
#define OF_IEEE
|
|
#endif
|
|
+#ifndef OF_MACHO
|
|
+#define OF_MACHO
|
|
+#endif
|
|
#endif
|
|
|
|
/* finally... override any format specifically specified to be off */
|
|
@@ -174,6 +180,9 @@
|
|
#ifdef OF_NO_IEEE
|
|
#undef OF_IEEE
|
|
#endif
|
|
+#ifdef OF_NO_MACHO
|
|
+#undef OF_MACHO
|
|
+#endif
|
|
|
|
#ifndef OF_DEFAULT
|
|
#define OF_DEFAULT of_bin
|
|
@@ -194,6 +203,7 @@ extern struct ofmt of_obj;
|
|
extern struct ofmt of_win32;
|
|
extern struct ofmt of_rdf2;
|
|
extern struct ofmt of_ieee;
|
|
+extern struct ofmt of_macho;
|
|
extern struct ofmt of_dbg;
|
|
|
|
struct ofmt *drivers[] = {
|
|
@@ -227,6 +237,9 @@ struct ofmt *drivers[] = {
|
|
#ifdef OF_IEEE
|
|
&of_ieee,
|
|
#endif
|
|
+#ifdef OF_MACHO
|
|
+ &of_macho,
|
|
+#endif
|
|
#ifdef OF_DBG
|
|
&of_dbg,
|
|
#endif
|