diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-07 01:51:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-07 01:51:25 +0000 |
commit | 88dd47ac00ee5a932bca9abbd2245c429dfd8f5b (patch) | |
tree | 494b3493adc0f1449c5a33f48002692a9e74ab17 /gold/layout.cc | |
parent | 2e444beaa07a2428b6409225840ce12d437d7805 (diff) | |
download | gdb-88dd47ac00ee5a932bca9abbd2245c429dfd8f5b.zip gdb-88dd47ac00ee5a932bca9abbd2245c429dfd8f5b.tar.gz gdb-88dd47ac00ee5a932bca9abbd2245c429dfd8f5b.tar.bz2 |
Implement --just-symbols, including -R FILE. Fix symbol values when
doing a relocatable link.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index faae577..98617f9 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -942,10 +942,10 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab, // If there is a SECTIONS clause, put all the input sections into // the required order. Output_segment* load_seg; - if (parameters->output_is_object()) - load_seg = NULL; - else if (this->script_options_->saw_sections_clause()) + if (this->script_options_->saw_sections_clause()) load_seg = this->set_section_addresses_from_script(symtab); + else if (parameters->output_is_object()) + load_seg = NULL; else load_seg = this->find_first_load_seg(); |