X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ld%2Ftestplug2.c;h=27553d07813b8e291caed595399b155c0e6ba94a;hb=c02d66610b3b79f6fb5052e8890969bc7185b7be;hp=ecd9a44d7310d06b3fbb6b158cb8cc373ee0a3c7;hpb=67338173a49204a2097ca1e2c63c6bc1fe972c3e;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/testplug2.c b/ld/testplug2.c index ecd9a44d73..27553d0781 100644 --- a/ld/testplug2.c +++ b/ld/testplug2.c @@ -218,12 +218,15 @@ parse_symdefstr (const char *str, struct ld_plugin_symbol *sym) /* Finally we'll use sscanf to parse the numeric fields, then we'll split out the strings which we need to allocate separate storage for anyway so that we can add nul termination. */ - n = sscanf (colon2 + 1, "%i:%i:%lli", &sym->def, &sym->visibility, &size); + n = sscanf (colon2 + 1, "%hhi:%i:%lli", &sym->def, &sym->visibility, &size); if (n != 3) return LDPS_ERR; /* Parsed successfully, so allocate strings and fill out fields. */ sym->size = size; + sym->unused = 0; + sym->section_kind = 0; + sym->symbol_type = 0; sym->resolution = LDPR_UNKNOWN; sym->name = malloc (colon1 - str + 1); if (!sym->name)