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.

2 Answers2

7

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
  • 299,747
  • 42
  • 398
  • 622
2

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
  • 11,792
  • 3
  • 44
  • 56