From d61b43941d00c04622764cf75bdd0824654496d7 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 14 Jan 2010 08:24:13 +0000 Subject: [PATCH] Allow gas flags input to bin objfmt (ignored and not used). Contributed by: Alexei Svitkine svn path=/trunk/yasm/; revision=2275 --- modules/objfmts/bin/bin-objfmt.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/objfmts/bin/bin-objfmt.c b/modules/objfmts/bin/bin-objfmt.c index 21d43dac..6f2d14d6 100644 --- a/modules/objfmts/bin/bin-objfmt.c +++ b/modules/objfmts/bin/bin-objfmt.c @@ -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); -- 2.40.0