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/fileread.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/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index 668151a..c21c6ee 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -576,7 +576,8 @@ Input_file::Input_file(const Task* task, const char* name, : file_() { this->input_argument_ = - new Input_file_argument(name, false, "", Position_dependent_options()); + new Input_file_argument(name, false, "", false, + Position_dependent_options()); bool ok = file_.open(task, name, contents, size); gold_assert(ok); } @@ -593,7 +594,17 @@ Input_file::options() const const char* Input_file::name() const -{ return this->input_argument_->name(); } +{ + return this->input_argument_->name(); +} + +// Return whether we are only reading symbols. + +bool +Input_file::just_symbols() const +{ + return this->input_argument_->just_symbols(); +} // Open the file. |