mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Fix #175: Only sanity check final section size if no user errors occurred.
svn path=/trunk/yasm/; revision=2203
This commit is contained in:
parent
a498736454
commit
db5f343748
1 changed files with 2 additions and 1 deletions
|
|
@ -793,7 +793,8 @@ coff_objfmt_output_section(yasm_section *sect, /*@null@*/ void *d)
|
|||
coff_objfmt_output_bytecode);
|
||||
|
||||
/* Sanity check final section size */
|
||||
if (csd->size != yasm_bc_next_offset(yasm_section_bcs_last(sect)))
|
||||
if (yasm_errwarns_num_errors(info->errwarns, 0) == 0 &&
|
||||
csd->size != yasm_bc_next_offset(yasm_section_bcs_last(sect)))
|
||||
yasm_internal_error(
|
||||
N_("coff: section computed size did not match actual size"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue