From a445fddf828b0e8251fbdce91bc9372e7efd24f0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 4 Feb 2008 05:43:05 +0000 Subject: Fully implement the SECTIONS clause. --- gold/defstd.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gold/defstd.cc') diff --git a/gold/defstd.cc b/gold/defstd.cc index 944af3e..984f3e1 100644 --- a/gold/defstd.cc +++ b/gold/defstd.cc @@ -23,6 +23,7 @@ #include "gold.h" #include "symtab.h" +#include "layout.h" #include "defstd.h" // This is a simple file which defines the standard symbols like @@ -251,8 +252,11 @@ namespace gold void define_standard_symbols(Symbol_table* symtab, const Layout* layout) { - symtab->define_symbols(layout, in_section_count, in_section); - symtab->define_symbols(layout, in_segment_count, in_segment); + bool saw_sections_clause = layout->script_options()->saw_sections_clause(); + symtab->define_symbols(layout, in_section_count, in_section, + saw_sections_clause); + symtab->define_symbols(layout, in_segment_count, in_segment, + saw_sections_clause); } } // End namespace gold. -- cgit v1.1