diff options
author | Alan Modra <amodra@gmail.com> | 2016-03-30 17:40:37 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-03-30 17:50:03 +1030 |
commit | ca62bc4a869267105a4b492223ed46d59e04c27c (patch) | |
tree | 402a6ea5930bf6fb9dd3a1a1cc4ccc80eac493a9 /ld/ldlang.c | |
parent | 2e4a7aea70a94d0efe1ad1912f8392c848d8de54 (diff) | |
download | gdb-ca62bc4a869267105a4b492223ed46d59e04c27c.zip gdb-ca62bc4a869267105a4b492223ed46d59e04c27c.tar.gz gdb-ca62bc4a869267105a4b492223ed46d59e04c27c.tar.bz2 |
Missing TO_ADDR
* ldlang.c (lang_size_sections_1): Correct code detecting a
backward non-overlapping move.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 235a246..b369f99 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 |