From a87dd97a2098b7e18ff2574a4e81ae521ef7e6f2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 30 Mar 2016 17:35:14 +1030 Subject: PR18452, ld allows overlapping sections PR 18452 * ldlang.c (maybe_overlays): New static var. (lang_size_sections_1): Set it here. (struct check_sec): New. (sort_sections_by_lma): Adjust for array of structs. (sort_sections_by_vma): New function. (lang_check_section_addresses): Check both LMA and VMA for overlap. * testsuite/ld-scripts/rgn-over7.d: Adjust. --- ld/ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ld/ChangeLog') diff --git a/ld/ChangeLog b/ld/ChangeLog index 5a2df38..17c0f6f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,16 @@ 2016-03-30 Alan Modra + PR 18452 + * ldlang.c (maybe_overlays): New static var. + (lang_size_sections_1): Set it here. + (struct check_sec): New. + (sort_sections_by_lma): Adjust for array of structs. + (sort_sections_by_vma): New function. + (lang_check_section_addresses): Check both LMA and VMA for overlap. + * testsuite/ld-scripts/rgn-over7.d: Adjust. + +2016-03-30 Alan Modra + * ldlang.c (lang_size_sections_1): Correct code detecting a backward non-overlapping move. -- cgit v1.1