[uClibc] RE: [uClibc-cvs] CVS uClibc/utils
Joakim Tjernlund
joakim.tjernlund at lumentis.se
Tue Sep 28 08:56:44 UTC 2004
> > --- /var/cvs/uClibc/utils/ldd.c 2004/03/18 11:17:14 1.13
> > +++ /var/cvs/uClibc/utils/ldd.c 2004/09/28 07:29:13 1.14
> > @@ -550,7 +550,7 @@
> > fprintf(stderr, "%s: not a dynamic
> > executable\n", filename);
> > return -1;
> > }
> > - if (ehdr->e_type == ET_EXEC) {
> > + if (ehdr->e_type == ET_EXEC || ehdr->e_type != ET_DYN) {
>
> This looks a bit suspicious. The first part is redundant,
> since the case where ehdr->e_type is ET_EXEC is already
> covered by ehdr->e_type != ET_DYN. Should the second != be == ?
Oops, it should be a "==", thanks.
Jocke
More information about the uClibc
mailing list