kernel ELF: Use interpreter paths outside of first page
authorJohn Marino <draco@marino.st>
Thu, 19 May 2011 19:54:27 +0000 (21:54 +0200)
committerJohn Marino <draco@marino.st>
Thu, 19 May 2011 20:01:39 +0000 (22:01 +0200)
commit99aed3e43ef052664173110d6db3ddf6a62e375b
tree2de0dcaf69f677891cc1619a93c56f4f99d74fba
parent0a0245f8a4e5cc1e2491dd8f8631c74db4a197c9
kernel ELF: Use interpreter paths outside of first page

The ELF handler was returning ENOEXEC error whenever it encountered a
binary with an interpreter program header located outside of the first
page.  This patch allows these binaries to execute normally.

Additionally, the handler will now ignore subsequent interpreter headers
encountered.  Before it would overwrite the previous pointer it had
stored.
sys/kern/imgact_elf.c