aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-07-15 15:31:54 +0000
committerIan Lance Taylor <ian@airs.com>2011-07-15 15:31:54 +0000
commit7d1726872032004915cd16e53cc781af2adb2873 (patch)
tree2073f1991cba644c41db0bb9fc44c49284fb3daf /gold/layout.h
parent2b1260ab1758b95f36263c48961bb4a113b0f238 (diff)
downloadgdb-7d1726872032004915cd16e53cc781af2adb2873.zip
gdb-7d1726872032004915cd16e53cc781af2adb2873.tar.gz
gdb-7d1726872032004915cd16e53cc781af2adb2873.tar.bz2
* i386.cc (class Output_data_plt_i386): Add layout_ field.
(Output_data_plt_i386::Output_data_plt_i386): Initialize layout_. (Output_data_plt_i386::do_write): Write address of .dynamic section to first entry in .got.plt section. * x86_64.cc (class Output_data_plt_x86_64): Add layout_ field. (Output_data_plt_x86_64::Output_data_plt_x86_64) [both versions]: Initialize layout_. (Output_data_plt_x86_64::do_write): Write address of .dynamic section to first entry in .got.plt section. * layout.h (Layout::dynamic_section): New function.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index f2c170b..1497f12 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -627,6 +627,12 @@ class Layout
dynpool() const
{ return &this->dynpool_; }
+ // Return the .dynamic output section. This is only valid after the
+ // layout has been finalized.
+ Output_section*
+ dynamic_section() const
+ { return this->dynamic_section_; }
+
// Return the symtab_xindex section used to hold large section
// indexes for the normal symbol table.
Output_symtab_xindex*