aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-26 05:44:38 +0000
committerIan Lance Taylor <iant@google.com>2007-09-26 05:44:38 +0000
commit3151305a47fc17a35bc76cc50578b3e8f9b93d9d (patch)
tree7579f01394de3af6a03a35d162ae8c59fefaf9a8 /gold/layout.h
parent4dffcebc10670489b064181a62e9588e72fb566a (diff)
downloadgdb-3151305a47fc17a35bc76cc50578b3e8f9b93d9d.zip
gdb-3151305a47fc17a35bc76cc50578b3e8f9b93d9d.tar.gz
gdb-3151305a47fc17a35bc76cc50578b3e8f9b93d9d.tar.bz2
Add basic exception frame header, plus test.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 38a3ad8..609de50 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -206,6 +206,13 @@ class Layout
static const Linkonce_mapping linkonce_mapping[];
static const int linkonce_mapping_count;
+ // Handle an exception frame section.
+ template<int size, bool big_endian>
+ void
+ layout_eh_frame(Relobj*, unsigned int, const char*,
+ const elfcpp::Shdr<size, big_endian>&,
+ Output_section*, off_t*);
+
// Find the first read-only PT_LOAD segment, creating one if
// necessary.
Output_segment*
@@ -356,6 +363,8 @@ class Layout
Output_section* dynamic_section_;
// The dynamic data which goes into dynamic_section_.
Output_data_dynamic* dynamic_data_;
+ // The exception frame section.
+ Output_section* eh_frame_section_;
};
// This task handles writing out data which is not part of a section