// layout.h -- lay out output file sections for gold -*- C++ -*-
-// Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
class Output_reduced_debug_info_section;
class Eh_frame;
class Target;
+struct Timespec;
// Return TRUE if SECNAME is the name of a compressed debug section.
extern bool
// Look for a section name in the group list, and return whether it
// was found. If found, returns the section index and size.
bool
- find_comdat_section(const std::string& name, unsigned int *pshndx,
- uint64_t *psize) const
+ find_comdat_section(const std::string& name, unsigned int* pshndx,
+ uint64_t* psize) const
{
gold_assert(this->is_comdat_);
Comdat_group::const_iterator p = this->u_.group_sections->find(name);
// If there is only one section in the group list, return true, and
// return the section index and size.
bool
- find_single_comdat_section(unsigned int *pshndx, uint64_t *psize) const
+ find_single_comdat_section(unsigned int* pshndx, uint64_t* psize) const
{
gold_assert(this->is_comdat_);
if (this->u_.group_sections->size() != 1)
// Return the object managing inputs in incremental build. NULL in
// non-incremental builds.
Incremental_inputs*
- incremental_inputs()
+ incremental_inputs() const
{ return this->incremental_inputs_; }
// For the target-specific code to add dynamic tags which are common
// Create a note section, filling in the header.
Output_section*
- create_note(const char* name, int note_type, const char *section_name,
+ create_note(const char* name, int note_type, const char* section_name,
size_t descsz, bool allocate, size_t* trailing_padding);
// Create a note section for gold version.
// Create .gnu_incremental_inputs and .gnu_incremental_strtab sections needed
// for the next run of incremental linking to check what has changed.
void
- create_incremental_info_sections();
+ create_incremental_info_sections(Symbol_table*);
// Find the first read-only PT_LOAD segment, creating one if
// necessary.