linux elf segment option excluded from protection failed
Posted: Tue Aug 19, 2025 2:27 am
hi.
i have a linux elf with a self define setion (__attribute__((section(".sigdata"), used)) unsigned char g_sig[256];)to be proteced. i wanna use vmp in this way: compile origin executable elf file,and protect it with vmp,then cal signature data of protected elf file ,at the end objcopy --update-section to overwrite the user defined section. without vmprotect shelling , objcopy --update-section work fine.but after vmprotect shelling objcopy --update-section report the input file has no sections.i test several option possible related (Details->Segments->Exclued from protection or option->File->pack the output file..),no one work.
is it a bug ? or i use in a wrong way?or something cant be handled technologically?
by the way i use the V3.9.6.2385 windows version to proction linux elf file.
i have a linux elf with a self define setion (__attribute__((section(".sigdata"), used)) unsigned char g_sig[256];)to be proteced. i wanna use vmp in this way: compile origin executable elf file,and protect it with vmp,then cal signature data of protected elf file ,at the end objcopy --update-section to overwrite the user defined section. without vmprotect shelling , objcopy --update-section work fine.but after vmprotect shelling objcopy --update-section report the input file has no sections.i test several option possible related (Details->Segments->Exclued from protection or option->File->pack the output file..),no one work.
is it a bug ? or i use in a wrong way?or something cant be handled technologically?
by the way i use the V3.9.6.2385 windows version to proction linux elf file.