mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
outobj: disallow the combination of USE16(16-bit segment) and FLAT
FLAT should be used only with USE32(32-bit segment). Signed-off-by: KO Myung-Hun <komh78@gmail.com>
This commit is contained in:
parent
3f37cacdd2
commit
05343069fa
1 changed files with 3 additions and 0 deletions
|
|
@ -1492,6 +1492,9 @@ static int32_t obj_segment(char *name, int *bits)
|
|||
}
|
||||
}
|
||||
|
||||
if (!seg->use32 && seg->grp && !strcmp(seg->grp->name, "FLAT"))
|
||||
nasm_panic("wrong combination of USE16(16-bit segment) and FLAT");
|
||||
|
||||
/* We need to know whenever we have at least one 32-bit segment */
|
||||
obj_use32 |= seg->use32;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue