diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-01-07 20:43:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-01-07 20:43:35 +0000 |
commit | ea715a34a7803993d232d8b85dbd77ca537190e6 (patch) | |
tree | 4fbc5d6e8c0a59a68e16dda8cb19459ec0c76bfa /gold/output.h | |
parent | 3a08d52f28cafb9fca077d58be4f0cdb42f3f655 (diff) | |
download | gdb-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/output.h')
-rw-r--r-- | gold/output.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h index 98132e9..18e0a9e 100644 --- a/gold/output.h +++ b/gold/output.h @@ -206,6 +206,10 @@ class Output_data output_section() { return this->do_output_section(); } + const Output_section* + output_section() const + { return this->do_output_section(); } + // Return the output section index, if there is an output section. unsigned int out_shndx() const @@ -358,6 +362,10 @@ class Output_data do_output_section() { return NULL; } + virtual const Output_section* + do_output_section() const + { return NULL; } + // Return the output section index, if there is an output section. virtual unsigned int do_out_shndx() const @@ -746,6 +754,10 @@ class Output_section_data : public Output_data do_output_section() { return this->output_section_; } + const Output_section* + do_output_section() const + { return this->output_section_; } + // Return the section index of the output section. unsigned int do_out_shndx() const; @@ -2641,6 +2653,10 @@ class Output_section : public Output_data do_output_section() { return this; } + const Output_section* + do_output_section() const + { return this; } + // Return the section index in the output file. unsigned int do_out_shndx() const |