aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-01 00:19:30 +0000
committerIan Lance Taylor <iant@google.com>2007-11-01 00:19:30 +0000
commit96f2030e25e865286f3417372dab977005aff45b (patch)
treed07e8d268cbb5b08f79cdd36953f078ded9388d1 /gold/layout.cc
parent823963270f3f9049315f299949aa5310bd93ee92 (diff)
downloadgdb-96f2030e25e865286f3417372dab977005aff45b.zip
gdb-96f2030e25e865286f3417372dab977005aff45b.tar.gz
gdb-96f2030e25e865286f3417372dab977005aff45b.tar.bz2
From Cary Coutant: More support for -shared, including fixes to GOT
handling.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 488ca6d..d959390 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -591,7 +591,8 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab)
// Create the .interp section to hold the name of the
// interpreter, and put it in a PT_INTERP segment.
- this->create_interp(target);
+ if (!parameters->output_is_shared())
+ this->create_interp(target);
// Finish the .dynamic section to hold the dynamic data, and put
// it in a PT_DYNAMIC segment.