Solved

Possible __NASMDEFSEG problems

Posted on 2004-04-26
4
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
The goal of this blog is to: > note what has impeded us from reaching effective life on-call > provide 3 steps to mastering life on-call > highlight what will be achieved with effective life on-call
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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