aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-07 20:43:35 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-07 20:43:35 +0000
commitea715a34a7803993d232d8b85dbd77ca537190e6 (patch)
tree4fbc5d6e8c0a59a68e16dda8cb19459ec0c76bfa /gold/layout.h
parent3a08d52f28cafb9fca077d58be4f0cdb42f3f655 (diff)
downloadgdb-ea715a34a7803993d232d8b85dbd77ca537190e6.zip
gdb-ea715a34a7803993d232d8b85dbd77ca537190e6.tar.gz
gdb-ea715a34a7803993d232d8b85dbd77ca537190e6.tar.bz2
* output.h (class Output_data): Add const version of
output_section and do_output_section. (class Output_section_data): Add const version of do_output_section. (class Output_section): Likewise. * layout.cc (Layout::add_target_dynamic_tags): New function. * layout.h (class Layout): Update declarations. * arm.cc (Target_arm::do_finalize_sections): Use add_target_dynamic_tags. * i386.cc (Target_i386::do_finalize_sections): Likewise. * powerpc.cc (Target_powerpc::do_finalize_sections): Likewise. * sparc.cc (Target_sparc::do_finalize_sections): Likewise. * x86_64.cc (Target_x86_64::do_finalize_sections): Likewise.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 604f19b..0b16cdf 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -556,6 +556,13 @@ class Layout
incremental_inputs()
{ return this->incremental_inputs_; }
+ // For the target-specific code to add dynamic tags which are common
+ // to most targets.
+ void
+ add_target_dynamic_tags(bool use_rel, const Output_data* plt_got,
+ const Output_data* plt_rel,
+ const Output_data* dyn_rel, bool add_debug);
+
// Compute and write out the build ID if needed.
void
write_build_id(Output_file*) const;