cvs commit: src/sys/kern imgact_elf.c src/sys/sys imgact_elf.h src/sys/emulation/linux/i386 linux_sysvec.c src/sys/emulation/svr4 svr4_sysvec.c

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Tue May 31 10:46:59 PDT 2005


joerg       2005/05/31 10:45:20 PDT

DragonFly src repository

  Modified files:
    sys/kern             imgact_elf.c 
    sys/sys              imgact_elf.h 
    sys/emulation/linux/i386 linux_sysvec.c 
    sys/emulation/svr4   svr4_sysvec.c 
  Log:
  Don't match executables with ELFOSABI_NONE against the brand list.
  For binaries without matching brand, try to match PT_NOTE header
  of type 1 (which is equal to .note.ABI-tag as section).
  
  Implement matching for FreeBSD, the up-coming DragonFly and Linux
  ABI tag.
  
  This implementation has some known limitations:
  - only one PT_NOTE header of type 1 is checked (the last)
  - the PT_NOTE header has to be part of the first page
  - ELF branding is prefered, no further matching is done (prevents multiple
    ABI emulations for the same ELF OS ABI)
  
  Inspired-by: NetBSD
  
  Revision  Changes    Path
  1.27      +76 -4     src/sys/kern/imgact_elf.c
  1.6       +2 -0      src/sys/sys/imgact_elf.h
  1.17      +24 -0     src/sys/emulation/linux/i386/linux_sysvec.c
  1.12      +1 -0      src/sys/emulation/svr4/svr4_sysvec.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/imgact_elf.c.diff?r1=1.26&r2=1.27&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/imgact_elf.h.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/i386/linux_sysvec.c.diff?r1=1.16&r2=1.17&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/emulation/svr4/svr4_sysvec.c.diff?r1=1.11&r2=1.12&f=u





More information about the Commits mailing list