diff options
author | Peter Johnson <peter@tortall.net> | 2010-01-14 08:24:13 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2010-01-14 08:24:13 +0000 |
commit | d61b43941d00c04622764cf75bdd0824654496d7 (patch) | |
tree | e536f8601ace5f5822d380fd8d01deaecc332525 | |
parent | 26c7e747294895bf0f8b68bf064e4ca2b5cdf88a (diff) | |
download | yasm-d61b43941d00c04622764cf75bdd0824654496d7.tar.gz |
Allow gas flags input to bin objfmt (ignored and not used).
Contributed by: Alexei Svitkine
svn path=/trunk/yasm/; revision=2275
-rw-r--r-- | modules/objfmts/bin/bin-objfmt.c | 12 |
1 files changed, 11 insertions, 1 deletions
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); |