Commit 5318d2ed authored by Simon McVittie's avatar Simon McVittie
Browse files

dump: Be more const-correct

Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent ad9e4c47
......@@ -413,7 +413,7 @@ st_type(int type)
static void
symbol_version ( ElfW(Sym) *symbol,
symbol_version ( const ElfW(Sym) *symbol,
int i,
const char *strtab,
const ElfW(Versym) *versym,
......@@ -471,16 +471,16 @@ symbol_version ( ElfW(Sym) *symbol,
static void
dump_symtab (const char *indent,
const void *start,
const ElfW(Sym) *start,
const char *strtab,
const ElfW(Versym) *versym,
const void *verdef,
const int verdefnum)
int x = 0;
ElfW(Sym) *entry;
const ElfW(Sym) *entry;
for( entry = (ElfW(Sym) *)start;
for( entry = start;
( (ELFW_ST_TYPE(entry->st_info) < STT_NUM) &&
(ELFW_ST_BIND(entry->st_info) < STB_NUM) );
entry++ )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment