[Differential] [Request, 3 lines] D1543: crunchide: Correct 64-bit section header offset

emaste (Ed Maste) phabric-noreply at FreeBSD.org
Fri Jan 16 16:29:46 UTC 2015


emaste created this revision.
emaste added a subscriber: freebsd-toolchain.

REVISION SUMMARY
  For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44. Instead of using an incorrect hardcoded offset, let the compiler figure it out for us with offsetof().

REVISION DETAIL
  https://reviews.freebsd.org/D1543

AFFECTED FILES
  usr.sbin/crunch/crunchide/exec_elf32.c

To: emaste
Cc: freebsd-toolchain


More information about the freebsd-toolchain mailing list