X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fmapfile.h;h=f096165f5dde5817804391e94e98276d1c9c93eb;hb=9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a;hp=e2cf08555870b7672bcb4c594f90ae4ae6b8ffe4;hpb=7d9e3d985416edccb274f0c704901839234cf4a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/mapfile.h b/gold/mapfile.h index e2cf085558..f096165f5d 100644 --- a/gold/mapfile.h +++ b/gold/mapfile.h @@ -1,6 +1,6 @@ // mapfile.h -- map file generation for gold -*- C++ -*- -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2016 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -33,7 +33,7 @@ class Archive; class Symbol; class Relobj; template -class Sized_relobj; +class Sized_relobj_file; class Output_section; class Output_data; @@ -54,10 +54,15 @@ class Mapfile 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. @@ -95,7 +100,7 @@ class Mapfile // Print symbols for an input section. template void - print_input_section_symbols(const Sized_relobj*, + print_input_section_symbols(const Sized_relobj_file*, unsigned int shndx); // Map file to write to.