This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Missing TO_ADDR
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 30 Mar 2016 07:34:45 -0000
- Subject: [binutils-gdb] Missing TO_ADDR
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ca62bc4a869267105a4b492223ed46d59e04c27c
commit ca62bc4a869267105a4b492223ed46d59e04c27c
Author: Alan Modra <amodra@gmail.com>
Date: Wed Mar 30 17:40:37 2016 +1030
Missing TO_ADDR
* ldlang.c (lang_size_sections_1): Correct code detecting a
backward non-overlapping move.
Diff:
---
ld/ChangeLog | 5 +++++
ld/ldlang.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4508d2e..5a2df38 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
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..
(IGNORE_SECTION): ..here.
(lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
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