summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/ehframe.h
diff options
context:
space:
mode:
authorHan Shen <shenhan@google.com>2016-03-10 16:58:00 -0800
committerHan Shen <shenhan@google.com>2016-03-10 17:00:27 -0800
commit066607388945f542727bd5035fb8d84bfd798034 (patch)
treeeeb9926a127554d0c1ac52a87811d84c9414cbea /binutils-2.25/gold/ehframe.h
parent48ba8648ee02f246c4fb286d7918f750c2b4ea4f (diff)
downloadtoolchain_binutils-066607388945f542727bd5035fb8d84bfd798034.tar.gz
toolchain_binutils-066607388945f542727bd5035fb8d84bfd798034.tar.bz2
toolchain_binutils-066607388945f542727bd5035fb8d84bfd798034.zip
Backport upstream CL to fix x86_64 clang test-stlport segfaults.
Upstream patch being backported: commit fc5a9bd57cbb974b8fc3aeb9a15d644cd9103451 Author: Cary Coutant <ccoutant@gmail.com> Date: Fri Feb 26 07:50:15 2016 -0800 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. TESTED=only tested building with 'build.py' BUG=26085687 Change-Id: I52e90fba86b113a557dd4d29d36ecb4c512f3f7a
Diffstat (limited to 'binutils-2.25/gold/ehframe.h')
-rw-r--r--binutils-2.25/gold/ehframe.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils-2.25/gold/ehframe.h b/binutils-2.25/gold/ehframe.h
index e9c9da89..8c0df99b 100644
--- a/binutils-2.25/gold/ehframe.h
+++ b/binutils-2.25/gold/ehframe.h
@@ -322,6 +322,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&);