Solved

Possible __NASMDEFSEG problems

Posted on 2004-04-26
4
210 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now