aboutsummaryrefslogtreecommitdiff
path: root/gold/ehframe.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-02 06:50:45 +0000
committerIan Lance Taylor <iant@google.com>2008-02-02 06:50:45 +0000
commit1cac254c18ff7ebf94d1f949b2c65ecc447a2ebf (patch)
treee19182c2708f9110c975c293e6844f5de917e56f /gold/ehframe.h
parentf964a7562a92762d94cc8c1f6177db2989dcac15 (diff)
downloadgdb-1cac254c18ff7ebf94d1f949b2c65ecc447a2ebf.zip
gdb-1cac254c18ff7ebf94d1f949b2c65ecc447a2ebf.tar.gz
gdb-1cac254c18ff7ebf94d1f949b2c65ecc447a2ebf.tar.bz2
Don't record file offset for CIEs.
Diffstat (limited to 'gold/ehframe.h')
-rw-r--r--gold/ehframe.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gold/ehframe.h b/gold/ehframe.h
index 8e09657..2f45b23 100644
--- a/gold/ehframe.h
+++ b/gold/ehframe.h
@@ -23,6 +23,10 @@
#ifndef GOLD_EHFRAME_H
#define GOLD_EHFRAME_H
+#include <map>
+#include <set>
+#include <vector>
+
#include "output.h"
#include "merge.h"
@@ -343,11 +347,11 @@ class Eh_frame : public Output_section_data
{ return *cie1 < *cie2; }
};
- // A mapping from unique CIEs to their offset in the output file.
- typedef std::map<Cie*, uint64_t, Cie_less> Cie_offsets;
+ // A set of unique CIEs.
+ typedef std::set<Cie*, Cie_less> Cie_offsets;
- // A list of unmergeable CIEs with their offsets.
- typedef std::vector<std::pair<Cie*, uint64_t> > Unmergeable_cie_offsets;
+ // A list of unmergeable CIEs.
+ typedef std::vector<Cie*> Unmergeable_cie_offsets;
// A mapping from offsets to CIEs. This is used while reading an
// input section.