summaryrefslogtreecommitdiff
path: root/gold/ehframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/ehframe.h')
-rw-r--r--gold/ehframe.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/gold/ehframe.h b/gold/ehframe.h
index de7c1092eb..8aab8b8168 100644
--- a/gold/ehframe.h
+++ b/gold/ehframe.h
@@ -246,10 +246,20 @@ class Fde
std::string contents_;
};
-// FDEs stashed for later processing.
+// A FDE plus some info from a CIE to allow later writing of the FDE.
-struct Post_fde;
-typedef std::vector<Post_fde*> Post_fdes;
+struct Post_fde
+{
+ Post_fde(Fde* f, section_offset_type cie_off, unsigned char encoding)
+ : fde(f), cie_offset(cie_off), fde_encoding(encoding)
+ { }
+
+ Fde* fde;
+ section_offset_type cie_offset;
+ unsigned char fde_encoding;
+};
+
+typedef std::vector<Post_fde> Post_fdes;
// This class holds a CIE.