2002-10-31 David O'Brien <obrien@FreeBSD.org>
authorDavid O'Brien <obrien@FreeBSD.org>
Thu, 31 Oct 2002 09:18:48 +0000 (09:18 +0000)
committerDavid O'Brien <obrien@FreeBSD.org>
Thu, 31 Oct 2002 09:18:48 +0000 (09:18 +0000)
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
signed and unsigned in comparison.

Approved by:  Alan Modra <amodra@bigpond.net.au>
              Message-ID: <20021012185224.Y979@bubble.sa.bigpond.net.au>

bfd/ChangeLog
bfd/elf-eh-frame.c

index ae01880f91544a830f5fd451555b73cf8e627952..595de41efa4fa7fdac24f7c281516cfd61324329 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-31  David O'Brien  <obrien@FreeBSD.org>
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
+       signed and unsigned in comparison.
+
 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
 
        * coffcode.h: Remove extraneous '\'.
index e80fc6c9d5704ac6d1119cba11afc5a5ad606ec6..b6d2d2f8087375ad6f04bb4f11121e8dfb086418 100644 (file)
@@ -414,7 +414,7 @@ _bfd_elf_discard_section_eh_frame (abfd, info, sec, ehdrsec,
            /* 64-bit .eh_frame is not supported.  */
            goto free_no_table;
          buf += 4;
-         if ((buf - ehbuf) + hdr.length > sec->_raw_size)
+         if ((bfd_size_type) (buf - ehbuf) + hdr.length > sec->_raw_size)
            /* CIE/FDE not contained fully in this .eh_frame input section.  */
            goto free_no_table;
 
This page took 0.029981 seconds and 4 git commands to generate.