DragonFly BSD
DragonFly commits List (threaded) for 2011-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: John Marino <marino@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 May 2011 23:56:38 -0700 (PDT)

commit 9d35f29fb5dd669d4e04521b39296e5bdf14b2b0
Author: John Marino <draco@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]