summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-03-03 14:15:41 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-03-03 14:15:41 -0800
commitc5b2de096436661892c13ec2c645e6d643c800f7 (patch)
tree1cd95177ad1e3f535038c8d6a90b5412e2e82894
parentc5b95dd5d435e4ec5ff74f5c85aedef90a73bef1 (diff)
downloadnasm-c5b2de096436661892c13ec2c645e6d643c800f7.tar.gz
codeview: be a bit more explicit about the nature of a panic
When we have to die due to an assertion violation, then show the missing symbol. Also, use nasm_panic() rather than nasm_assert() for this purpose. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--output/codeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/codeview.c b/output/codeview.c
index 86050ec7..b5c205ce 100644
--- a/output/codeview.c
+++ b/output/codeview.c
@@ -417,7 +417,7 @@ static void register_reloc(struct coff_Section *const sect,
return;
}
}
- nasm_assert(!"relocation for unregistered symbol");
+ nasm_panic(0, "codeview: relocation for unregistered symbol: %s", sym);
}
static inline void section_write32(struct coff_Section *sect, uint32_t val)