]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r308772: crunchide: report explicit error for combined string table
authoremaste <emaste@FreeBSD.org>
Thu, 24 Nov 2016 00:45:00 +0000 (00:45 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 24 Nov 2016 00:45:00 +0000 (00:45 +0000)
commitb2ffd6a229ed6549e6b2ccbea064a84cb483ab28
tree93860b465b9e9e4ba09761fca07f40648310d6cd
parentbfe71bd32252150349a05ed554443db2a697cfd4
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).
usr.sbin/crunch/crunchide/exec_elf32.c