This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH]: Fix comparison between signed and unsigned warning in ld
- From: Khem Raj <kraj at mvista dot com>
- To: Thiemo Seufer <ths at networkno dot de>
- Cc: binutils at sourceware dot org
- Date: Thu, 08 Dec 2005 17:23:07 -0800
- Subject: Re: [PATCH]: Fix comparison between signed and unsigned warning in ld
- References: <4398D4AD.8060505@mvista.com> <20051209005331.GI2861@hattusa.textio>
Thiemo Seufer said the following on 12/08/2005 04:53 PM:
Khem Raj wrote:
[snip]
--- emultempl/elf32.em 7 Dec 2005 14:43:54 -0000 1.161
+++ emultempl/elf32.em 9 Dec 2005 00:48:28 -0000
@@ -569,7 +569,7 @@ gld${EMULATION_NAME}_parse_ld_so_conf_in
#ifdef HAVE_GLOB
if (glob (pattern, 0, NULL, &gl) == 0)
{
- size_t i;
+ int i;
for (i = 0; i < gl.gl_pathc; ++i)
gld${EMULATION_NAME}_parse_ld_so_conf (info, gl.gl_pathv[i]);
gl.gl_pathc should probably be a size_t instead.
This will need changes in newlib I guess. The newlib structure glob_t is
different to glibc one.
Thiemo