diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-04 05:43:05 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-04 05:43:05 +0000 |
commit | a445fddf828b0e8251fbdce91bc9372e7efd24f0 (patch) | |
tree | 6af0ee8254a9432643798126eef663603d92eb08 /gold/gold.cc | |
parent | d16c732117ed4b752abd51dd1598c9cec9d2b26c (diff) | |
download | gdb-a445fddf828b0e8251fbdce91bc9372e7efd24f0.zip gdb-a445fddf828b0e8251fbdce91bc9372e7efd24f0.tar.gz gdb-a445fddf828b0e8251fbdce91bc9372e7efd24f0.tar.bz2 |
Fully implement the SECTIONS clause.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index c738e31..aa6f32a 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -198,17 +198,16 @@ queue_middle_tasks(const General_options& options, // handles some cases we want to see before we read the relocs. layout->create_initial_dynamic_sections(symtab); - // Predefine standard symbols. This should be fast, so we don't - // bother to create a task for it. + // Define symbols from any linker scripts. + layout->define_script_symbols(symtab); + + // Predefine standard symbols. define_standard_symbols(symtab, layout); // Define __start and __stop symbols for output sections where // appropriate. layout->define_section_symbols(symtab); - // Define symbols from any linker scripts. - layout->define_script_symbols(symtab); - // 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 |