PR21970, assertion failed when more than one overlay has subalign specified
authorAlan Modra <amodra@gmail.com>
Sun, 1 Oct 2017 08:32:35 +0000 (19:02 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 1 Oct 2017 09:05:07 +0000 (19:35 +1030)
PR 21970
* ldlang.c (lang_leave_overlay): Reset overlay_subalign.

ld/ChangeLog
ld/ldlang.c

index 0c117771175ad6087d088a93e1988276ff2e4fc8..5beae41364fbfda7674e0f6caf2e35bf44449885 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-01  Alan Modra  <amodra@gmail.com>
+
+       PR 21970
+       * ldlang.c (lang_leave_overlay): Reset overlay_subalign.
+
 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/21978
index 4cb7e3fbdecdaebce0cd066a20b91f97b4991d89..7b80bf9dc18cac5916e2abe809c2a480ffdb0f27 100644 (file)
@@ -8035,6 +8035,7 @@ lang_leave_overlay (etree_type *lma_expr,
   overlay_vma = NULL;
   overlay_list = NULL;
   overlay_max = NULL;
+  overlay_subalign = NULL;
 }
 \f
 /* Version handling.  This is only useful for ELF.  */