aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0c11777..5beae41 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
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. */