PR21970, assertion failed when more than one overlay has subalign specified

PR 21970
	* ldlang.c (lang_leave_overlay): Reset overlay_subalign.
This commit is contained in:
Alan Modra 2017-10-01 19:02:35 +10:30
parent 20230942fe
commit 8cb1232a8c
2 changed files with 6 additions and 0 deletions

View 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

View File

@ -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. */