summaryrefslogtreecommitdiff
path: root/gold/defstd.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-04 05:43:05 +0000
committerIan Lance Taylor <iant@google.com>2008-02-04 05:43:05 +0000
commita445fddf828b0e8251fbdce91bc9372e7efd24f0 (patch)
tree6af0ee8254a9432643798126eef663603d92eb08 /gold/defstd.cc
parentd16c732117ed4b752abd51dd1598c9cec9d2b26c (diff)
downloadbinutils-gdb-a445fddf828b0e8251fbdce91bc9372e7efd24f0.tar.gz
Fully implement the SECTIONS clause.
Diffstat (limited to 'gold/defstd.cc')
-rw-r--r--gold/defstd.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gold/defstd.cc b/gold/defstd.cc
index 944af3e0869..984f3e1b042 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.