Exemplo n.º 1
0
/* Reallocate space for the string table if necessary. Note that reallocation is lazy here -- we don't shrink the section,
 * we only enlarge it (if you want the section to shrink then call SgAsmGenericStrtab::reallocate(bool) with a true value
 * rather than calling this function. SgAsmPEStringSection::reallocate is called in response to unparsing a file and gives
 * the string table a chance to extend its container section if it needs to allocate more space for strings. */
bool
SgAsmPEStringSection::reallocate()
{
    return get_strtab()->reallocate(false);
}
Exemplo n.º 2
0
/** Unparse an ElfStringSection by unparsing the ElfStrtab */
void
SgAsmElfStringSection::unparse(std::ostream &f) const
{
    get_strtab()->unparse(f);
    unparse_holes(f);
}