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

看板DFBSD_commit作者時間14年前 (2011/05/19 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1DrC0qyf (DFBSD_commit)