Lucio Franceschini
Lucio Franceschini

Reputation: 21

Building a DLL for Windows with a specific base address

I am working on a project for a Windows library in Ada that must be compiled in a DLL, starting from a .gpr project via GPRBuild. I was able to produce a working DLL for Windows, but now I want to specify the base address for the location of the DLL. At the moment I was able to set the DLL location through the editbin utility but I would like to integrate this step directly in the .gpr file. I have tried to use the Library_Options attribute:

for Library_Options use ("-Wl,--disable-auto-image-base", "-Wl,--image-base=0x20000000");

But it does not seem to help. Is it somehow possible to do what I want directly after compilation or is it really necessary to use an external script?

Upvotes: 2

Views: 156

Answers (0)

Related Questions