Line 291... |
Line 291... |
if (input_file.type() == INCREMENTAL_INPUT_SHARED_LIBRARY)
|
if (input_file.type() == INCREMENTAL_INPUT_SHARED_LIBRARY)
|
{
|
{
|
for (unsigned int symndx = 0; symndx < nsyms; ++symndx)
|
for (unsigned int symndx = 0; symndx < nsyms; ++symndx)
|
{
|
{
|
bool is_def;
|
bool is_def;
|
|
bool is_copy;
|
unsigned int output_symndx =
|
unsigned int output_symndx =
|
input_file.get_output_symbol_index(symndx, &is_def);
|
input_file.get_output_symbol_index(symndx, &is_def, &is_copy);
|
sym_p = symtab_view.data() + output_symndx * sym_size;
|
sym_p = symtab_view.data() + output_symndx * sym_size;
|
elfcpp::Sym<size, big_endian> sym(sym_p);
|
elfcpp::Sym<size, big_endian> sym(sym_p);
|
const char* symname;
|
const char* symname;
|
if (!strtab.get_c_string(sym.get_st_name(), &symname))
|
if (!strtab.get_c_string(sym.get_st_name(), &symname))
|
symname = "<unknown>";
|
symname = "<unknown>";
|
printf(" %6d %6s %8s %8s %8s %8s %-5s %s\n",
|
printf(" %6d %6s %8s %8s %8s %8s %-5s %s\n",
|
output_symndx,
|
output_symndx,
|
"", "", "", "", "",
|
"", "", "", "", "",
|
is_def ? "DEF" : "UNDEF",
|
is_copy ? "COPY" : (is_def ? "DEF" : "UNDEF"),
|
symname);
|
symname);
|
}
|
}
|
}
|
}
|
else
|
else
|
{
|
{
|
Line 319... |
Line 320... |
const char* symname;
|
const char* symname;
|
if (!strtab.get_c_string(sym.get_st_name(), &symname))
|
if (!strtab.get_c_string(sym.get_st_name(), &symname))
|
symname = "<unknown>";
|
symname = "<unknown>";
|
printf(" %6d %6d %8d %8d %8d %8d %-5s %s\n",
|
printf(" %6d %6d %8d %8d %8d %8d %-5s %s\n",
|
output_symndx,
|
output_symndx,
|
info.shndx(),
|
info.shndx() == -1U ? -1 : info.shndx(),
|
input_file.get_symbol_offset(symndx),
|
input_file.get_symbol_offset(symndx),
|
info.next_offset(),
|
info.next_offset(),
|
info.reloc_count(),
|
info.reloc_count(),
|
info.reloc_offset(),
|
info.reloc_offset(),
|
info.shndx() != elfcpp::SHN_UNDEF ? "DEF" : "UNDEF",
|
(info.shndx() == -1U
|
|
? "BASE"
|
|
: info.shndx() == 0 ? "UNDEF" : "DEF"),
|
symname);
|
symname);
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|