Missing TO_ADDR
* ldlang.c (lang_size_sections_1): Correct code detecting a backward non-overlapping move.
This commit is contained in:
parent
2e4a7aea70
commit
ca62bc4a86
2 changed files with 6 additions and 1 deletions
|
@ -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..
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue