mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
Missing TO_ADDR
* ldlang.c (lang_size_sections_1): Correct code detecting a backward non-overlapping move.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user