aboutsummaryrefslogtreecommitdiff
path: root/binutils/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-05-02 12:16:26 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-05-02 12:16:26 -0700
commit2ecf0cc317d065cfeb960c61688897351521bce0 (patch)
treeb474e3f90bf61ac814ead85223420bf982007768 /binutils/ChangeLog
parentd17f7b365cf3896b3129b9077d55b3154fc43131 (diff)
downloadgdb-2ecf0cc317d065cfeb960c61688897351521bce0.zip
gdb-2ecf0cc317d065cfeb960c61688897351521bce0.tar.gz
gdb-2ecf0cc317d065cfeb960c61688897351521bce0.tar.bz2
Cast relcount to unsigned long when comparing with sec->reloc_count
The type of relcount is long and the type of sec->reloc_count is unsigned int. On 32-bit hosts, GCC issues an error: objcopy.c:2144:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (relcount > sec->reloc_count) Cast relcount to unsigned long to silence GCC. * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned long when comparing with sec->reloc_count.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r--binutils/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d13dbb6..b3a539a 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
+ long when comparing with sec->reloc_count.
+
2017-05-02 Nick Clifton <nickc@redhat.com>
* objcopy.c (merge_gnu_build_notes): Disable merge if there are