]> granicus.if.org Git - yasm/commitdiff
Allow gas flags input to bin objfmt (ignored and not used).
authorPeter Johnson <peter@tortall.net>
Thu, 14 Jan 2010 08:24:13 +0000 (08:24 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 14 Jan 2010 08:24:13 +0000 (08:24 -0000)
Contributed by: Alexei Svitkine

svn path=/trunk/yasm/; revision=2275

modules/objfmts/bin/bin-objfmt.c

index 21d43dacab2085075cdc4b9a2a0e6e1fa7ea7030..6f2d14d67d32fe152bd06769d8b48e07fae89667 100644 (file)
@@ -1432,6 +1432,15 @@ bin_objfmt_add_default_section(yasm_object *object)
     return retval;
 }
 
+/* GAS-style flags */
+static int
+bin_helper_gasflags(void *obj, yasm_valparam *vp, unsigned long line, void *d,
+                    /*@unused@*/ uintptr_t arg)
+{
+    /* TODO */
+    return 0;
+}
+
 static /*@observer@*/ /*@null@*/ yasm_section *
 bin_objfmt_section_switch(yasm_object *object, yasm_valparamhead *valparams,
                           /*@unused@*/ /*@null@*/
@@ -1480,7 +1489,8 @@ bin_objfmt_section_switch(yasm_object *object, yasm_valparamhead *valparams,
         { "execute", 0, yasm_dir_helper_flag_set,
           offsetof(struct bin_section_switch_data, code), 1 },
         { "noexecute", 0, yasm_dir_helper_flag_set,
-          offsetof(struct bin_section_switch_data, code), 0 }
+          offsetof(struct bin_section_switch_data, code), 0 },
+        { "gasflags", 1, bin_helper_gasflags, 0, 0 }
     };
 
     vp = yasm_vps_first(valparams);