This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Creating .note sections


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 at necrofish dot org dot uk>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]