From 38bf108619772406c8ca3abbfd14a05174334394 Mon Sep 17 00:00:00 2001
From: jdh8d <jdh8d@git.zephyr-software.com>
Date: Thu, 26 Jan 2017 21:15:23 +0000
Subject: [PATCH] Ignore 0 size FDE's in eh_frame

Former-commit-id: 00949c9c28ec42abc582409386ff900f1ff64da4
---
 libIRDB/test/fix_calls.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libIRDB/test/fix_calls.cpp b/libIRDB/test/fix_calls.cpp
index f36f7cd4f..89ef48893 100644
--- a/libIRDB/test/fix_calls.cpp
+++ b/libIRDB/test/fix_calls.cpp
@@ -1143,6 +1143,11 @@ main(int argc, char* argv[])
 
 void range(virtual_offset_t a, virtual_offset_t b)
 {
+	// we've found examples of ranges being 0 sized, and it's a bit weird what that means.
+	// it applies to 0 instructions?
+	// skip it, it's likely an invalid FDE.
+	if(a==b)
+		return; 
 	// non-zero sized fde
 	assert(a<b);
 
-- 
GitLab