]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r308772: crunchide: report explicit error for combined string table
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 24 Nov 2016 00:46:34 +0000 (00:46 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 24 Nov 2016 00:46:34 +0000 (00:46 +0000)
commit62614244cb56ef668dd81d2e357651d85ef22bb2
tree0dbe2db6aff30fbf14b6f089908ac7cb257682d2
parent4872cb37e94d25a0ed3269c99ea9c70515fb1c11
MFC r308772: 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).

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