(process_syminfo): Print names of files symbols are bound to, not the index.

This commit is contained in:
Ulrich Drepper 1998-08-26 00:17:28 +00:00
parent a12914abfd
commit 7c71c3ea98

View File

@ -3067,7 +3067,7 @@ process_syminfo (file)
{
unsigned short int flags = dynamic_syminfo[i].si_flags;
printf ("%4d: %-35s ", i,
printf ("%4d: %-30s ", i,
dynamic_strings + dynamic_symbols[i].st_name);
switch (dynamic_syminfo[i].si_boundto)
@ -3079,7 +3079,13 @@ process_syminfo (file)
fputs ("PARENT ", stdout);
break;
default:
printf ("%-7d ", dynamic_syminfo[i].si_boundto);
if (dynamic_syminfo[i].si_boundto > 0
&& dynamic_syminfo[i].si_boundto < dynamic_size)
printf ("%-10s ",
dynamic_strings
+ dynamic_segment[dynamic_syminfo[i].si_boundto].d_un.d_val);
else
printf ("%-10d ", dynamic_syminfo[i].si_boundto);
break;
}