From 1650c4ff500bc54eea33d31ae9396434a3e13733 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 12 Mar 2008 04:38:42 +0000 Subject: Combine read-only .eh_frame sections with read-write .eh_frame sections. --- gold/output.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gold/output.h') diff --git a/gold/output.h b/gold/output.h index a004515..3ce27f6 100644 --- a/gold/output.h +++ b/gold/output.h @@ -1714,6 +1714,13 @@ class Output_section : public Output_data flags() const { return this->flags_; } + // Set the section flags. This may only be used with the Layout + // code when it is prepared to move the section to a different + // segment. + void + set_flags(elfcpp::Elf_Xword flags) + { this->flags_ = flags; } + // Return the entsize field. uint64_t entsize() const @@ -2523,6 +2530,11 @@ class Output_segment add_initial_output_section(Output_section* os, elfcpp::Elf_Word seg_flags) { this->add_output_section(os, seg_flags, true); } + // Remove an Output_section from this segment. It is an error if it + // is not present. + void + remove_output_section(Output_section* os); + // Add an Output_data (which is not an Output_section) to the start // of this segment. void -- cgit v1.1