aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index e7b7ae2..2d33462 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -148,6 +148,10 @@ queue_middle_tasks(const General_options& options,
// bother to create a task for it.
define_standard_symbols(symtab, layout, input_objects->target());
+ // Define __start and __stop symbols for output sections where
+ // appropriate.
+ layout->define_section_symbols(symtab, input_objects->target());
+
// Read the relocations of the input files. We do this to find
// which symbols are used by relocations which require a GOT and/or
// a PLT entry, or a COPY reloc. When we implement garbage