From: Alan Modra Date: Wed, 30 Mar 2016 07:10:37 +0000 (+1030) Subject: Missing TO_ADDR X-Git-Tag: users/hjl/linux/release/2.26.51.0.2~1^2~70^2~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca62bc4a869267105a4b492223ed46d59e04c27c;p=thirdparty%2Fbinutils-gdb.git Missing TO_ADDR * ldlang.c (lang_size_sections_1): Correct code detecting a backward non-overlapping move. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 4508d2e4e53..5a2df38689f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2016-03-30 Alan Modra + + * ldlang.c (lang_size_sections_1): Correct code detecting a + backward non-overlapping move. + 2016-03-30 Alan Modra * ldlang.c (IS_TBSS): New macro, extracted from.. diff --git a/ld/ldlang.c b/ld/ldlang.c index 235a2464527..b369f994d8c 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5068,7 +5068,7 @@ lang_size_sections_1 create overlapping LMAs. */ if (dot < last->vma && os->bfd_section->size != 0 - && dot + os->bfd_section->size <= last->vma) + && dot + TO_ADDR (os->bfd_section->size) <= last->vma) { /* If dot moved backwards then leave lma equal to vma. This is the old default lma, which might