Question about “Link Map” output and “Assume” directive of MASM assembler?

This is not MASM specific. It is part of the linker. I.e.

Linker map this is not MASM specific. It is part of the linker. I.e.Ml /Fm foo.

Asm is the same as ml foo. Asm /link /map or ml /c foo. Asm link foo.

Obj /map cl. Exe has this option too (/Fm) which does the same thing.It is a list of the sections that are placed in the EXE or DLL image, in the order they appear. E.g.

Code, data, resources, import table, export table, etc.The offset is relative to the start of the image section. A number of object sections may be combined into an image section by the linker. E.g.0002:00001514 00000014H .

Idata$2 DATA 0002:00001528 00000014H . Idata$3 DATA 0002:0000153c 000000f8H . Idata$4 DATA 0002:00001634 00000464H .

Idata$6 DATA The above are object sections (they come from . Obj files) since they contain a suffix starting with $. The linker will merge them into one section .

Idata in the final image module (in lexicographic order of the suffix). The offset is relative to the start of where the linker will allocate the import address table (.idata section). Assume Provides compile-time checks, to prevent accidental misuse of registers.It doesn't generate any code.

See http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_8/CH08-3.html#HEADING3-98 http://msdn.microsoft.com/en-us/library/kx3dscek(VS.80).aspx.

Thanks, Alex. So the offset in a link map means the offset relative to the start of an EXE file on disk? Nothing to do with the in-memory location.

– smwikipedia Apr 4 '10 at 3:52 No, it is the offset relative to the start of the image section. I suppose I should explain the difference between object and image sections. – Alex Apr 4 '10 at 4:14 So, it is an offset in file, not in memory?

– smwikipedia Apr 7 '10 at 6:32.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions