Missing TO_ADDR

* ldlang.c (lang_size_sections_1): Correct code detecting a
	backward non-overlapping move.
This commit is contained in:
Alan Modra 2016-03-30 17:40:37 +10:30
parent 2e4a7aea70
commit ca62bc4a86
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-03-30 Alan Modra <amodra@gmail.com>
* ldlang.c (lang_size_sections_1): Correct code detecting a
backward non-overlapping move.
2016-03-30 Alan Modra <amodra@gmail.com>
* ldlang.c (IS_TBSS): New macro, extracted from..

View file

@ -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