Creating .note sections
Ceri Storey
cez@necrofish.org.uk
Thu Apr 24 13:13:00 GMT 2003
On Thu, Apr 24, 2003 at 11:29:15AM +0100, Nick Clifton wrote:
> But why should you want to create your own segments ? Normally the
> linker (or objcopy) will take care of this for you.
I'm attempting to create a digital signature based executable
verification system for NetBSD, like Microsoft's Authenticode.
What I'm doing is creating a signature of all the non-note sections of
an executable, then writing this back into a PT_NOTE segment of the
executable, which is then checked by the kernel when the executable is run.
(Phew).
I could use the section table, but I'd rather avoid any additional
complexity in kernel space.
Admittedly it's not exactly a pleasant way of doing it..
--
Ceri Storey <cez@necrofish.org.uk>
More information about the Binutils
mailing list