This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR21970, assertion failed when more than one overlay has subalign
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sun, 1 Oct 2017 20:55:48 +1030
- Subject: PR21970, assertion failed when more than one overlay has subalign
- Authentication-results: sourceware.org; auth=none
PR 21970
* ldlang.c (lang_leave_overlay): Reset overlay_subalign.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 4cb7e3f..7b80bf9 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -8035,6 +8035,7 @@ lang_leave_overlay (etree_type *lma_expr,
overlay_vma = NULL;
overlay_list = NULL;
overlay_max = NULL;
+ overlay_subalign = NULL;
}
/* Version handling. This is only useful for ELF. */
--
Alan Modra
Australia Development Lab, IBM