This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch to ld/pe-dll.c: Use explicit lookup for filering excluded objects
- To: danny_r_smith_2001 at yahoo dot co dot nz
- Subject: Re: Patch to ld/pe-dll.c: Use explicit lookup for filering excluded objects
- From: DJ Delorie <dj at delorie dot com>
- Date: Wed, 17 Oct 2001 22:52:04 -0400
- CC: binutils at sources dot redhat dot com
- References: <20011018010946.76204.qmail@web14503.mail.yahoo.com>
> A re-revised patch : Why not use a simple array for autofilter_liblist as
> well.
Please note whatever testing you've done for your patch when you
submit it.
> + Don't export anything from system libs. */
> + if (abfd && abfd->my_archive &&
> + (p=lbasename (abfd->my_archive->filename)))
> + for (i =0; i < af_liblist_len; i++)
> + if ( strstr (p, autofilter_liblist[i]))
If we're using lbasename, shouldn't we use strncmp instead of strstr?