The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: BogdanOntanu on August 31, 2005, 06:05:26 PM

Title: How to force relocations on an MASM generated PE
Post by: BogdanOntanu on August 31, 2005, 06:05:26 PM
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 ;)

Title: Re: How to force relocations on an MASM generated PE
Post by: PellesC on August 31, 2005, 06:22:27 PM
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
Title: Re: How to force relocations on an MASM generated PE
Post by: BogdanOntanu on August 31, 2005, 06:43:27 PM
Thank you very much...

And BTW I do appreciate your IDE ;)
Title: Re: How to force relocations on an MASM generated PE
Post by: PellesC on August 31, 2005, 09:05:08 PM
Thanks!

Pelle
Title: Re: How to force relocations on an MASM generated PE
Post by: Vortex on August 31, 2005, 09:20:04 PM
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.
Title: Re: How to force relocations on an MASM generated PE
Post by: BogdanOntanu on September 01, 2005, 06:34:50 AM
Thank you.