aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-12 04:38:42 +0000
committerIan Lance Taylor <iant@google.com>2008-03-12 04:38:42 +0000
commit1650c4ff500bc54eea33d31ae9396434a3e13733 (patch)
tree36c7a4a10c6005e8ab65e0afb8b9230d49a50c39 /gold/output.h
parente00eeb0a11ba17abc1166adb7f94097ae37c470c (diff)
downloadgdb-1650c4ff500bc54eea33d31ae9396434a3e13733.zip
gdb-1650c4ff500bc54eea33d31ae9396434a3e13733.tar.gz
gdb-1650c4ff500bc54eea33d31ae9396434a3e13733.tar.bz2
Combine read-only .eh_frame sections with read-write .eh_frame
sections.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h12
1 files changed, 12 insertions, 0 deletions
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