DragonFly commits List (threaded) for 2011-05
git: Kernel Elf: Expand ABI.note-tag search to cover entire file
Author: John Marino <firstname.lastname@example.org>
Date: Thu May 19 01:36:03 2011 +0200
Kernel Elf: Expand ABI.note-tag search to cover entire file
The FreeBSD code that provides the new ABI.note-tag search limits itself
to the first page PT_NOTE header found and there could be more than one.
Moreover, that header is ignored if it doesn't fall within the first page.
The problem is that 99% of the binaries produced right now have their
note-tag outside of the first page, and perhaps the culprit is the new
binutils 2.21. Due to this, we are required to search the entire
binary to look for these tags, and the previous code of DragonFly did
this so part of it was brought back here.
Summary of changes:
sys/kern/imgact_elf.c | 121 +++++++++++++++++++++++++++++++++++--------------
1 files changed, 87 insertions(+), 34 deletions(-)
DragonFly BSD source repository