LKBEN10909: Howto rebase a DLL under windows


You would like to optimise your system and would like to rebase your libraries




Some compilers always use certain addresses as default. This leads to dll collisions which will be handled by the OS automatically by rebasing. This can also be done

before! In that case the loading can be optimised. Please note that this performance increase is minimal!

e.g. rebase -b 0x6000000 *.dll

To prevent load address collisions you can use the rebase utilty that comes with Visual Studio and the Platform SDK. Use the rebase utility to reassign the base

addresses of the Application ServerDLLs to prevent relocations at load time and increase the available process memory.

Rebasing can be done on any DLL. To rebase DLL's you need at least windows 2000 and the Microsoft Framework SDK rebase utility. You can check if the rebase was

successfull with the Dependency Walker.


The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.