summaryrefslogtreecommitdiff
path: root/output/outas86.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2018-05-30 14:43:46 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2018-05-30 14:48:18 -0700
commit892c4818ceaddd53ab98ee4fecc3821dcc703751 (patch)
treea13338556a104dd4c3b66f36c9ec4175bdcf94e4 /output/outas86.c
parentb7136487bd59b943645bbdc917b694340399ab9b (diff)
downloadnasm-892c4818ceaddd53ab98ee4fecc3821dcc703751.tar.gz
Add support for backend-defined subsections and label hacks
MachO has this odd thing called "subsections via symbols", by which a symbol can magically start what effectively is a new section. To support this, add support for a calldown into the backend when a new symbol is defined *at the current output location*, and allow it to switch the current segment. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'output/outas86.c')
-rw-r--r--output/outas86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/output/outas86.c b/output/outas86.c
index 18781950..3f9867b9 100644
--- a/output/outas86.c
+++ b/output/outas86.c
@@ -622,10 +622,12 @@ const struct ofmt of_as86 = {
&null_debug_form,
as86_stdmac,
as86_init,
+ null_reset,
nasm_do_legacy_output,
as86_out,
as86_deflabel,
as86_section_names,
+ NULL,
null_sectalign,
as86_segbase,
null_directive,