From e662e41829dcf411e0122f22f718ce505aad3669 Mon Sep 17 00:00:00 2001
From: Jason Hiser <jdhiser@gmail.com>
Date: Thu, 6 Sep 2018 22:22:38 +0000
Subject: [PATCH] revised to use .got.plt only if it exists

Former-commit-id: 351425ecc25ea766275bb77cbbcaccd16f6c19b8
---
 tools/rida/rida.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/rida/rida.cpp b/tools/rida/rida.cpp
index 4ed54b50f..98b478624 100644
--- a/tools/rida/rida.cpp
+++ b/tools/rida/rida.cpp
@@ -287,8 +287,8 @@ class CreateFunctions_t
 			}
 
 			const auto gotPltSec=exeio.sections[endSecName];
-			assert(gotPltSec!=NULL);
-			addRange(gotPltSec->get_address(),gotPltSec->get_size());
+			if(gotPltSec!=NULL)
+				addRange(gotPltSec->get_address(),gotPltSec->get_size());
 	
 		}
 
-- 
GitLab