From: nasm-bot f. H. P. A. <hp...@zy...> - 2016-03-03 22:24:18
|
Commit-ID: c5b2de096436661892c13ec2c645e6d643c800f7 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=c5b2de096436661892c13ec2c645e6d643c800f7 Author: H. Peter Anvin <hp...@zy...> AuthorDate: Thu, 3 Mar 2016 14:15:41 -0800 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Thu, 3 Mar 2016 14:15:41 -0800 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 <hp...@zy...> --- output/codeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/codeview.c b/output/codeview.c index 86050ec..b5c205c 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) |