Skip to content
Snippets Groups Projects
Commit 1583116e authored by Simon McVittie's avatar Simon McVittie
Browse files

elf-dump: Print string table size from find_strtab()


It turns out none of the callers currently use the size. We should
probably have some way to know it can work.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 606a57c3
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -824,6 +824,17 @@ dump_dynamic (const char *indent, void *start, size_t size, ElfW(Addr) base)
int tag_type = TTYPE_VAL;
fprintf( stderr, "%s{\n", indent );
if( strtab )
{
fprintf( stderr, "%s string table at %p, %d bytes\n",
indent, strtab, strsiz );
}
else
{
fprintf( stderr, "%s no string table?!\n", indent );
}
for( entry = start + base;
(entry->d_tag != DT_NULL) && ((void *)entry < (start + base + size));
entry++ )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment