git: Kernel Elf: Expand ABI.note-tag search to cover entire file

John Marino marino at crater.dragonflybsd.org
Wed May 18 23:58:11 PDT 2011


commit 9d35f29fb5dd669d4e04521b39296e5bdf14b2b0
Author: John Marino <draco at marino.st>
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d35f29fb5dd669d4e04521b39296e5bdf14b2b0


-- 
DragonFly BSD source repository





More information about the Commits mailing list