This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] 32-bit objcopy build fail
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 30 Jan 2018 00:21:51 -0000
- Subject: [binutils-gdb] 32-bit objcopy build fail
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f49db8befafd5a716a83fec75c90145c58af7418
commit f49db8befafd5a716a83fec75c90145c58af7418
Author: Alan Modra <amodra@gmail.com>
Date: Mon Jan 29 15:48:03 2018 +1030
32-bit objcopy build fail
* objcopy.c (merge_gnu_build_notes): Use (bfd_vma) -1 as
"artificially large" end address.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/objcopy.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 56a4305..213e783 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-30 Alan Modra <amodra@gmail.com>
+
+ * objcopy.c (merge_gnu_build_notes): Use (bfd_vma) -1 as
+ "artificially large" end address.
+
2018-01-28 Nick Clifton <nickc@redhat.com>
* README-how-to-make-a-release: Add note about checking gpg key
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 1e39f6d..8cdf27a 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -2064,7 +2064,7 @@ merge_gnu_build_notes (bfd * abfd, asection * sec, bfd_size_type size, bfd_byte
For now though, since v1 and v2 was not intended to
handle gaps, we chose an artificially large end
address. */
- end = (bfd_vma) 0x7ffffffffffffffUL;
+ end = (bfd_vma) -1;
break;
case 8:
@@ -2083,7 +2083,7 @@ merge_gnu_build_notes (bfd * abfd, asection * sec, bfd_size_type size, bfd_byte
For now though, since v1 and v2 was not intended to
handle gaps, we chose an artificially large end
address. */
- end = (bfd_vma) 0x7ffffffffffffffUL;
+ end = (bfd_vma) -1;
}
break;