News:

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

How to force relocations on an MASM generated PE

Started by BogdanOntanu, August 31, 2005, 06:05:26 PM

Previous topic - Next topic

BogdanOntanu

I need to import the relocation information from Win32 PE files generated by MASM
The question is how to get sure that such relocations exist in the PE executable?
Are there any compile or link flags for this?

Same goes for other assemblers as well ;)

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

PellesC

To include 'base relocations' you can use the link option /FIXED:NO. Default, I think, is /FIXED for EXE files and /FIXED:NO for DLL files (since the load address can easily change).

Pelle

BogdanOntanu

Thank you very much...

And BTW I do appreciate your IDE ;)
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro


Vortex

Hi Bogdan,

I know that you are a Tasm user. If you would like to use the OMF linker from Digital Mars creating smaller executables compared to tlink32 there is a similar switch to force relocations.

BogdanOntanu

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro