Date: Fri, 16 Jan 2015 16:29:45 +0000 From: "emaste (Ed Maste)" <phabric-noreply@FreeBSD.org> To: freebsd-toolchain@freebsd.org Subject: [Differential] [Request, 3 lines] D1543: crunchide: Correct 64-bit section header offset Message-ID: <differential-rev-PHID-DREV-wadypgszkzqbd2v33zl5-req@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-wadypgszkzqbd2v33zl5-req>