Blame SOURCES/binutils-ignore-duplicate-FDE-entries.patch

0c74e2
--- binutils-2.32.orig/bfd/elf-eh-frame.c	2019-06-26 07:05:43.839194746 -0400
0c74e2
+++ binutils-2.32/bfd/elf-eh-frame.c	2019-06-26 07:32:37.124219479 -0400
0c74e2
@@ -2478,11 +2478,16 @@ write_dwarf_eh_frame_hdr (bfd *abfd, str
0c74e2
 		  != sec->output_section->vma + val))
0c74e2
 	    overflow = TRUE;
0c74e2
 	  bfd_put_32 (abfd, val, contents + EH_FRAME_HDR_SIZE + i * 8 + 8);
0c74e2
-	  if (i != 0
0c74e2
-	      && (hdr_info->u.dwarf.array[i].initial_loc
0c74e2
-		  < (hdr_info->u.dwarf.array[i - 1].initial_loc
0c74e2
-		     + hdr_info->u.dwarf.array[i - 1].range)))
0c74e2
-	    overlap = TRUE;
0c74e2
+	  if (i != 0)
0c74e2
+	    {
0c74e2
+	      struct eh_frame_array_ent * this_entry = hdr_info->u.dwarf.array + i;
0c74e2
+	      struct eh_frame_array_ent * prev_entry = hdr_info->u.dwarf.array + (i - 1);
0c74e2
+
0c74e2
+	      if (this_entry->initial_loc < prev_entry->initial_loc + prev_entry->range
0c74e2
+		  && (this_entry->initial_loc != prev_entry->initial_loc
0c74e2
+		      || this_entry->range != prev_entry->range))
0c74e2
+		overlap = TRUE;
0c74e2
+	    }
0c74e2
 	}
0c74e2
       if (overflow)
0c74e2
 	_bfd_error_handler (_(".eh_frame_hdr entry overflow"));