views:

217

answers:

2

I'd like to modify the base address of a few compiled dlls I'm using to move them out of the middle of the virtual space and help with big allocations. Anybody knows of a tool to do that? If it's doable in the loader it seems it would be possible do to it permanently in the dll file.

+6  A: 

There's a tool ReBase.exe which comes with Visual Studio which can change the preferred load address of a DLL. The loader is always capable of changing this at run time, though.

Mark Ransom
Thanks a lot this is what I was looking for.
+1  A: 

You can also specify the base address as a linker option in Visual Studio:

Project Properties | Configuration Properties | Linker | Advanced | Base Address

(Assuming a C++ project.)

sean e
This is for a dll that is already compiled