summaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-06-04 00:43:11 +0000
committerIan Lance Taylor <ian@airs.com>2009-06-04 00:43:11 +0000
commitdff1629750aa81c871e137a1bef34ecb3aed32c9 (patch)
treebc01acd3e86057e3efd6aad6f697f81f83bc33bb /gold/layout.h
parentdb468abb98d4763f86894877a7c05bf25ef974b5 (diff)
* layout.cc (Layout::section_name_mapping): New array, replacing
Layout::linkonce_mapping. (Layout::section_name_mapping_count): New variable, replacing Layout::linkonce_mapping_count. (Layout::linkonce_output_name): Remove. (Layout::output_section_name): Rewrite. * layout.h (class Layout): Rename Linkonce_mapping to Section_name_mapping, linkonce_mapping to section_name_mapping, linkonce_mapping_count to section_name_mapping_count. Don't declare linkonce_output_name.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 0a9146bdf4..93ecd8544d 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -433,16 +433,16 @@ class Layout
Layout(const Layout&);
Layout& operator=(const Layout&);
- // Mapping from .gnu.linkonce section names to output section names.
- struct Linkonce_mapping
+ // Mapping from input section names to output section names.
+ struct Section_name_mapping
{
const char* from;
int fromlen;
const char* to;
int tolen;
};
- static const Linkonce_mapping linkonce_mapping[];
- static const int linkonce_mapping_count;
+ static const Section_name_mapping section_name_mapping[];
+ static const int section_name_mapping_count;
// During a relocatable link, a list of group sections and
// signatures.
@@ -556,11 +556,6 @@ class Layout
static const char*
output_section_name(const char* name, size_t* plen);
- // Return the output section name to use for a linkonce section
- // name. PLEN is as for output_section_name.
- static const char*
- linkonce_output_name(const char* name, size_t* plen);
-
// Return the number of allocated output sections.
size_t
allocated_output_section_count() const;