.reloc section missing in app

  • Thread starter Thread starter SS
  • Start date Start date
S

SS

I am creating an exe using VC++ .Net. By default, it is not showing .reloc
section.

I have tries using the DUMPBIN utility also, but no help.

Any suggestions on how to insert this section into my exe??
 
Why would your executable need a reloc section? I believe the linker drops
this section for exe files as they can be guaranteed not to be relocated (as
they are the first thing to be loaded into an address space). I guess the
only case you might need it is if you were to try and load the exe file via
LoadLibrary. Sorry I don't have a good answer, but I do wonder why you
might want the section to be included.


Jonathan
 
Thanks for the response Jonathan.
I need .reloc section in our application to work it with PureCoverage, a
rational tool.

Now how do I show this section?
 
I just had another look and it appears that you can force the linker to
output this section by setting "Fixed Base Address" in the "Advanced" secion
of the linker options to "no".

Jonathan
 
SS said:
I am creating an exe using VC++ .Net. By default, it is not showing .reloc
section.

I have tries using the DUMPBIN utility also, but no help.

Any suggestions on how to insert this section into my exe??

Why??
 
Back
Top