// Report about including a member from an archive.
void
-Mapfile::report_include_archive_member(const Archive* archive,
- const std::string& member_name,
+Mapfile::report_include_archive_member(const std::string& member_name,
const Symbol* sym, const char* why)
{
// We print a header before the list of archive members, mainly for
this->printed_archive_header_ = true;
}
- fprintf(this->map_file_, "%s(%s)", archive->file().filename().c_str(),
- member_name.c_str());
+ fprintf(this->map_file_, "%s", member_name.c_str());
- size_t len = (archive->file().filename().length()
- + member_name.length()
- + 2);
- this->advance_to_column(len, 30);
+ this->advance_to_column(member_name.length(), 30);
if (sym == NULL)
fprintf(this->map_file_, "%s", why);
&& is_ordinary
&& sym->is_defined())
{
- for (size_t i = 0; i < Mapfile::section_name_map_length; ++i)
+ for (size_t j = 0; j < Mapfile::section_name_map_length; ++j)
putc(' ', this->map_file_);
const Sized_symbol<size>* ssym =
static_cast<const Sized_symbol<size>*>(sym);
}
else
{
- section_offset_type offset;
- os = relobj->output_section(shndx, &offset);
- if (offset == -1)
- addr = ~0ULL;
- else
- addr = os->address() + offset;
+ os = relobj->output_section(shndx);
+ addr = relobj->output_section_offset(shndx);
+ if (addr != -1ULL)
+ addr += os->address();
}
char sizebuf[50];