From 8cb1232a8cc0d1a6db2de51398acfe978a5c7e68 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 1 Oct 2017 19:02:35 +1030 Subject: [PATCH] PR21970, assertion failed when more than one overlay has subalign specified PR 21970 * ldlang.c (lang_leave_overlay): Reset overlay_subalign. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 0c117771175..5beae41364f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2017-10-01 Alan Modra + + PR 21970 + * ldlang.c (lang_leave_overlay): Reset overlay_subalign. + 2017-09-30 H.J. Lu PR binutils/21978 diff --git a/ld/ldlang.c b/ld/ldlang.c index 4cb7e3fbdec..7b80bf9dc18 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. */