]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-10-31 David O'Brien <obrien@FreeBSD.org>
authorDavid O'Brien <obrien@FreeBSD.org>
Thu, 31 Oct 2002 09:33:40 +0000 (09:33 +0000)
committerDavid O'Brien <obrien@FreeBSD.org>
Thu, 31 Oct 2002 09:33:40 +0000 (09:33 +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 cf89a01cef6a1a3f01c2443e698f76de7bd0a4d1..37652df3ce817109e97dd56e52fe291bb86341a2 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>
 
        * bfd-in2.h: Regenerated.
index 713dc8f11d124235096aa5280abce22773a37a88..62226c580c447a710120fe81a571e04dd337c7c5 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;