From 4b1a9d1d084999435a85b76707cf4adb52f835d6 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Wed, 3 Jul 2019 16:12:18 +0000 Subject: [PATCH] updated range assertion to occur only if split-eh-frame is off --- irdb-libs/ir_builders/fill_in_indtargs.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/irdb-libs/ir_builders/fill_in_indtargs.cpp b/irdb-libs/ir_builders/fill_in_indtargs.cpp index 99da1812d..261dbbecf 100644 --- a/irdb-libs/ir_builders/fill_in_indtargs.cpp +++ b/irdb-libs/ir_builders/fill_in_indtargs.cpp @@ -4181,9 +4181,11 @@ int executeStep() fill_in_indtargs(firp, exeiop.get(), do_unpin_opt); if(split_eh_frame_opt) split_eh_frame(firp,exeiop.get()); - - if(firp->getArchitecture()->getMachineType() != admtAarch64) - assert(getenv("SELF_VALIDATE")==nullptr || ranges.size() > 1 ); + else + { + if(firp->getArchitecture()->getMachineType() != admtAarch64) + assert(getenv("SELF_VALIDATE")==nullptr || ranges.size() > 1 ); + } } if(getenv("FII_NOUPDATE")!=nullptr) -- GitLab