diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-28 06:36:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-28 06:36:25 +0000 |
commit | b3b74ddc6e208b58108b0900b4896034f84bb6be (patch) | |
tree | ce562c3e12599c8d8f40e9ec75f6e729b272b62e /gold/gold.cc | |
parent | fe6fbf8b6eff80d3df998ab8b0e14ac984e3e265 (diff) | |
download | gdb-b3b74ddc6e208b58108b0900b4896034f84bb6be.zip gdb-b3b74ddc6e208b58108b0900b4896034f84bb6be.tar.gz gdb-b3b74ddc6e208b58108b0900b4896034f84bb6be.tar.bz2 |
Use parameters to track whether we are doing a static link. Fix up
final_value_is_known for weak undefined symbols. Pointed out by Cary
Coutant.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 7d01a81..5c8ce50 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -160,6 +160,9 @@ queue_middle_tasks(const General_options& options, Layout* layout, Workqueue* workqueue) { + // Now we have seen all the input files. + set_parameters_doing_static_link(!input_objects->any_dynamic()); + // Define some sections and symbols needed for a dynamic link. This // handles some cases we want to see before we read the relocs. layout->create_initial_dynamic_sections(input_objects, symtab); |