crunchide: report explicit error for combined string table
authoremaste <emaste@FreeBSD.org>
Thu, 17 Nov 2016 18:12:17 +0000 (18:12 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 17 Nov 2016 18:12:17 +0000 (18:12 +0000)
commit27b84ca828900fee51ffe2190565b1e7bd311e09
treee80ce95bdb6289ed4e33d0181be3e874bdaf2061
parented4ecfed3487b33db68ee3811d5ba661aaa914f4
crunchide: report explicit error for combined string table

Some tools produce objects with a combined strtab and shstrtab.
These objects are not supported by crunchide since it rewrites the
symtab and strtab to "hide" symbols. This invalidates section header
offsets into a combined strtab/shstrtab.

In the future we could support these objects (by ensuring that we retain
unmodified section name strings in the output .strtab, and then rewriting
each section header's sh_name).

MFC after: 1 week
Sponsored by: The FreeBSD Foundation
usr.sbin/crunch/crunchide/exec_elf32.c