News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Source for FDA data assembler

Started by hutch--, March 21, 2005, 04:32:23 AM

Previous topic - Next topic

hutch--

I normally will not post code that has a problem but this one is working OK so its not a real problem. I had a word doc file as reference material called PECOFF.DOC from Microsoft which was no real joy to follow.

The tool writes a nominated file of any type to an object module and it has been tested and works correctly but I had to fudge the string table at the end to get it to work properly. It takes a single export name and supports long names and the method I used to get it to build and work OK was to write a 64 bytes as the string table and then write the export name at the correct location.

It builds correctly using the Microsoft linker in MASM32 but with Pelle's linker which is of a later design, it produces a warning of an extra .DATA section even though it builds OK.

I would certainly be interested if anyone has some more comprehensive documentation on COFF format object modules as I have a more ambitious task in mind if I can get enough documentation to do it.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Tedd

Have you checked on http://www.wotsit.org ? (choose "Binaries")

This is a nice one for PE: http://www.wotsit.org/download.asp?f=winf10
Or there's this, for object files (but it might be a text version of the word doc you have): http://www.wotsit.org/download.asp?f=ss_obj
No snowflake in an avalanche feels responsible.

wjr

There is a bit of a contradiction in the wording of Section 5.6 paragraph 2. The value for the size field is the total byte size for the strings plus 4 for the size field itself. I suspect that is where you may have run into a problem.

I have nothing further to offer as a source for more comprehensive documentation, but my recent PEview v0.90 update at http://www.magma.ca/~wjr/ now displays more information for IMAGE_SYMBOL as well as IMAGE_AUX_SYMBOL.

WJR