Not enough space for the new segment in the file header
Not enough space for the new segment in the file header
Hello,
I use the VMProtect demo (v3.2) to test before I buy.
With an exe, then a dll, everything works !
But I encounter an error with a WinDDK driver : "Not enough space for the new segment in the file header".
The error persists even if I change the "DRIVER_ALIGNMENT" value in the sources before recompiling (= 0x1200).
This is my current setup :
Memory Protection : Yes
Import Protection : Yes
Debugger : User-mode + Kernel-mode
Virtualization Tools : No
Strip Debug Information : Yes
Key Pair Algorithm : RSA 4096
Do you have any idea, please ?
Thank you
I use the VMProtect demo (v3.2) to test before I buy.
With an exe, then a dll, everything works !
But I encounter an error with a WinDDK driver : "Not enough space for the new segment in the file header".
The error persists even if I change the "DRIVER_ALIGNMENT" value in the sources before recompiling (= 0x1200).
This is my current setup :
Memory Protection : Yes
Import Protection : Yes
Debugger : User-mode + Kernel-mode
Virtualization Tools : No
Strip Debug Information : Yes
Key Pair Algorithm : RSA 4096
Do you have any idea, please ?
Thank you
Re: Not enough space for the new segment in the file header
why you change this from 0x1000 to 0x1200 what reason?The error persists even if I change the "DRIVER_ALIGNMENT" value in the sources before recompiling (= 0x1200).
also I think you should use your protection based on hwid inside not use VMP for drivers.
anyway just my opinion, admin is one that solve problems here.
Re: Not enough space for the new segment in the file header
Hello ovid,
Thank you
Only for testwhy you change this from 0x1000 to 0x1200 what reason?
Why please ?also I think you should use your protection based on hwid inside not use VMP for drivers.
Thank you
Re: Not enough space for the new segment in the file header
Have same issue(not enough space for the new segment in the file header) when trying to protect linux so in ultimate windows version(spirt****@pm.me) and with linux x64 trial too
file example: https://share.riseup.net/#7jm-uu0nAAsIAW9DiCM9Hg (cannot attach here cuz "Invalid file extension: libLLVM-3.9.so")
Does VMP 3.2 support elf64 so shared libs?
file example: https://share.riseup.net/#7jm-uu0nAAsIAW9DiCM9Hg (cannot attach here cuz "Invalid file extension: libLLVM-3.9.so")
Does VMP 3.2 support elf64 so shared libs?
Re: Not enough space for the new segment in the file header
VMProtect supports elf64 binaries.
Re: Not enough space for the new segment in the file header
Nice, but what should i do with this compilation error? Where is the root? May be i should use another gcc flags? Will this error fixed?
Re: Not enough space for the new segment in the file header
Do you use our SDK?
Re: Not enough space for the new segment in the file header
No i dont, should i?
I'm trying to protect free as in freedom binary(https://github.com/lwss/fuzion)
I'm trying to protect free as in freedom binary(https://github.com/lwss/fuzion)
Re: Not enough space for the new segment in the file header
In this case there is not enough free space in the file header.
Re: Not enough space for the new segment in the file header
Yes, but is there way for protection this project? After ur question I've tried to include vmprotectsdk.h and set up markers for some functions, but result is the same.
Re: Not enough space for the new segment in the file header
You can use the following trick with SDK name: "./././././././././././././libVMProtectSDK.so" (many many /./.). This string is placed in the file header and after protection the place of this string will be used for creation of a new segment(s).
Re: Not enough space for the new segment in the file header
how to perform it? could u provide an example?
Re: Not enough space for the new segment in the file header
Try this:
gcc -L././././././././././
gcc -L././././././././././
Re: Not enough space for the new segment in the file header
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -L ./././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././src/libVMProtectSDK64.so")
didnt work
didnt work
Re: Not enough space for the new segment in the file header
Please read help about "-L" more carefully.