Possible __NASMDEFSEG problems
Posted on 2004-04-26
I looked in my .map file after it has been compiled by NASM. And this is what i see:
Detailed map of segments
0000:0000 0271 C=CODE S=_TEXT G=(none) M=ex1.ASM ACBP=68
0000:0271 0128 C=CODE S=_TEXT G=(none) M=ex2.ASM ACBP=28
003A:0000 0008 C=BSS S=_BSS G=(none) M=ex1.ASM ACBP=68
003A:0008 000E C=BSS S=_BSS G=(none) M=ex2.ASM ACBP=28
003B:0006 0010 C= S=__NASMDEFSEG G=(none) M=ex2.ASM ACBP=28
I looked in the nasm manual and it says the nasmdefseg appears IF you have code before an explicit segment definition. HOWEVER, I do NOT have any code before one -- I'm very confused and I'm wondering about the possible implicatins of this issue.
Like what if nasm has a bug and puts ALL my code before that? Is there a max, etc?