]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
crunchide: Correct 64-bit section header offset
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Jan 2015 02:39:00 +0000 (02:39 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Jan 2015 02:39:00 +0000 (02:39 +0000)
commita3a4c2a1bf3750a53d3e2ef62b70b008f8713298
tree571826ef286691d28bdb27cf57c02764bb59a1d0
parent9acf85a693426266266cf7115a1b83cfb18facef
crunchide: Correct 64-bit section header offset

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().

MFC of r277259

git-svn-id: svn://svn.freebsd.org/base/stable/10@277557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/crunch/crunchide/exec_elf32.c