// mapfile.h -- map file generation for gold -*- C++ -*-
-// Copyright 2008 Free Software Foundation, Inc.
+// Copyright (C) 2008-2019 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
class Symbol;
class Relobj;
template<int size, bool big_endian>
-class Sized_relobj;
+class Sized_relobj_file;
class Output_section;
class Output_data;
void
close();
+ // Return the underlying file.
+ FILE*
+ file()
+ { return this->map_file_; }
+
// Report that we are including a member from an archive. This is
// called by the archive reading code.
void
- report_include_archive_member(const Archive*, const std::string& member_name,
+ report_include_archive_member(const std::string& member_name,
const Symbol* sym, const char* why);
// Report allocating a common symbol.
// Print symbols for an input section.
template<int size, bool big_endian>
void
- print_input_section_symbols(const Sized_relobj<size, big_endian>*,
+ print_input_section_symbols(const Sized_relobj_file<size, big_endian>*,
unsigned int shndx);
// Map file to write to.