Add support for backend-defined subsections and label hacks
commit892c4818ceaddd53ab98ee4fecc3821dcc703751
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 May 2018 21:43:46 +0000 (30 14:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 30 May 2018 21:48:18 +0000 (30 14:48 -0700)
treea13338556a104dd4c3b66f36c9ec4175bdcf94e4
parentb7136487bd59b943645bbdc917b694340399ab9b
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>
18 files changed:
asm/directiv.c
asm/labels.c
asm/nasm.c
asm/segalloc.c
include/nasm.h
include/nasmlib.h
output/nullout.c
output/outaout.c
output/outas86.c
output/outbin.c
output/outcoff.c
output/outdbg.c
output/outelf.c
output/outieee.c
output/outlib.h
output/outmacho.c
output/outobj.c
output/outrdf2.c