aboutsummaryrefslogtreecommitdiff
path: root/gold/ehframe.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2016-02-26 07:50:15 -0800
committerCary Coutant <ccoutant@gmail.com>2016-02-26 07:53:20 -0800
commitfc5a9bd57cbb974b8fc3aeb9a15d644cd9103451 (patch)
treed42f0754a51f74f3ba88e5c9267e63846c0209eb /gold/ehframe.h
parent9fde51ed303ea3ecbaa7c0084ea417e775a5db29 (diff)
downloadgdb-fc5a9bd57cbb974b8fc3aeb9a15d644cd9103451.zip
gdb-fc5a9bd57cbb974b8fc3aeb9a15d644cd9103451.tar.gz
gdb-fc5a9bd57cbb974b8fc3aeb9a15d644cd9103451.tar.bz2
Discard FDEs for zero-length address ranges.
2016-02-26 Egor Kochetov <egor.kochetov@intel.com> Cary Coutant <ccoutant@gmail.com> gold/ PR gold/19735 * ehframe.h (Cie::fde_encoding): New method. * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length address ranges.
Diffstat (limited to 'gold/ehframe.h')
-rw-r--r--gold/ehframe.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/ehframe.h b/gold/ehframe.h
index a32b550..14281b0 100644
--- a/gold/ehframe.h
+++ b/gold/ehframe.h
@@ -323,6 +323,11 @@ class Cie
unsigned int addralign, Eh_frame_hdr* eh_frame_hdr,
Post_fdes* post_fdes);
+ // Return the FDE encoding.
+ unsigned char
+ fde_encoding() const
+ { return this->fde_encoding_; }
+
friend bool operator<(const Cie&, const Cie&);
friend bool operator==(const Cie&, const Cie&);