Issues related to VMProtect
-
Rick
- Posts: 6
- Joined: Sun Jan 20, 2008 2:20 pm
Post
by Rick »
Win32 device driver, 14KB, compiled with WDK 6000, using sections :
.text
.rdata
.idata
PAGE
INIT
DriverEntry() is in INIT section, several pageable functions are in PAGE section.
In VMProtect 1.61, I choose to protect 11 functions (from 102) and 9 Unicode strings (from 9). When I click on Compile I get Dialog :
'Section ".text" is in the field of creation of heading of new section'
What does the error mean and how can I fix the problem please?
Thank you
-
Admin
- Site Admin
- Posts: 2566
- Joined: Mon Aug 21, 2006 8:19 pm
- Location: Russia, E-burg
-
Contact:
Post
by Admin »
You should increase the value of alignment for sections in the settings of your compiler.
-
Rick
- Posts: 6
- Joined: Sun Jan 20, 2008 2:20 pm
Post
by Rick »
Thank you. I am having trouble finding how to do that for a driver. I have tried adding :
LINKER_FLAGS =$(LINKER_FLAGS) -ALIGN:8192
to the SOURCES file, but it made no difference to the size of the .sys or to the problem.
-
Admin
- Site Admin
- Posts: 2566
- Joined: Mon Aug 21, 2006 8:19 pm
- Location: Russia, E-burg
-
Contact:
Post
by Admin »
-
Rick
- Posts: 6
- Joined: Sun Jan 20, 2008 2:20 pm
Post
by Rick »
Yes, thanks, that is for VC. I am compiling a device driver with WDK/DDK, so it doesn't apply.
Thanks anyhow.
Later... I have found the answer. Add the following line to the SOURCES file :
DRIVER_ALIGNMENT=0x200
to set the section alignment to 512bytes in that example.