[Nasm-bugs] [Bug 3392532] panic: assertion pass0 == 0 failed at output/outobj.c:1915

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Mon Nov 26 13:36:02 PST 2018


https://bugzilla.nasm.us/show_bug.cgi?id=3392532

--- Comment #15 from H. Peter Anvin <hpa at zytor.com> ---
Okay, I see the problem.

The issue is that:

a) we have a forward reference to an EXTERN declaration
b) that symbol has a WRT in the EXTERN declaration
c) the reference uses SEG
d) we don't record such external symbols until pass 1, 

In that case, the external segment number is indeed unavailable on pass 1 due
to the test at line 1602.

Since obj_deflabel() isn't called until pass0 == 1, the forward EXTERN
declaration will not be defined, and the assertion is plain wrong.

I will fix it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list