diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-16 23:23:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-16 23:23:08 +0000 |
commit | 436ca963fd42564971f2906e4ba7263d513e483c (patch) | |
tree | 422fb94d22ab9e5df3475ff43c3b734625a489f2 /gold/layout.cc | |
parent | a360aedd0fd0e2c02c0896046bec126e6ad72308 (diff) | |
download | gdb-436ca963fd42564971f2906e4ba7263d513e483c.zip gdb-436ca963fd42564971f2906e4ba7263d513e483c.tar.gz gdb-436ca963fd42564971f2906e4ba7263d513e483c.tar.bz2 |
From Cary Coutant: preliminary shared library support.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 4f5abac..8fafdcb 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -411,7 +411,7 @@ void Layout::create_initial_dynamic_sections(const Input_objects* input_objects, Symbol_table* symtab) { - if (!input_objects->any_dynamic()) + if (parameters->doing_static_link()) return; const char* dynamic_name = this->namepool_.add(".dynamic", false, NULL); @@ -545,7 +545,7 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab) this->create_note_section(); Output_segment* phdr_seg = NULL; - if (input_objects->any_dynamic()) + if (!parameters->doing_static_link()) { // There was a dynamic object in the link. We need to create // some information for the dynamic linker. |