imgact_elf: accept .note.ABI-tag sections located anywhere
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 29 Oct 2009 01:38:13 +0000 (02:38 +0100)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 29 Oct 2009 01:38:13 +0000 (02:38 +0100)
commit7c34d798a4d6ae46122607d9f54d30bd09006395
treec8c6ea93788141d8e2b03f30bd4e2990c8e90328
parent0750a371b4c58a1a0d1b2852f1b92eca807a5177
imgact_elf: accept .note.ABI-tag sections located anywhere

This follows up on commit d9f47b9b82dc9e762119fd00267eef9a0268680a.

While our current build infrastructure now produces binaries which can
be read properly by the kernel, this does not hold true for any non-base
linker, particularly binutils compiled directly from source, or even the
recent binutils-2.20 import.

Instead of relying on local modifications to the Elf linker scripts,
bite the bullet and make the kernel deal with PT_NOTE sections that lie
outside the first page.
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/sys/exec.h