Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Possible __NASMDEFSEG problems

Posted on 2004-04-26
4
Medium Priority
?
256 Views
Last Modified: 2008-03-06
Hi,

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?

Thanks
0
Comment
Question by:sceptre04
4 Comments
 
LVL 3

Expert Comment

by:Dancie
ID: 10937757
Lets see the source
0
 

Author Comment

by:sceptre04
ID: 10944737
Ok the problem is solved -- was instead of doing a #include inside the code, I was compiling the .h file in from the command line.  As a result, nasm put that .h file in the nasmdefseg.

Thanks for the offer though Dancie!
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 10945350
User resolved; closed, 50 points refunded.

Netminder
Site Admin
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question