mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
2011-02-28 Kai Tietz <kai.tietz@onevision.com>
* emultempl/beos.em (sort_by_file_name): Use filename_(n)cmp. * emultempl/elf32.em (gld${EMULATION_NAME}_vercheck): Likewise. (gld${EMULATION_NAME}_stat_needed): Likewise. (gld${EMULATION_NAME}_check_needed): Likewise. * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise. (gld_${EMULATION_NAME}_unrecognized_file): Likewise. * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise. (gld_${EMULATION_NAME}_unrecognized_file): Likewise. * ldfile.c (ldfile_open_file): Likewise. * ldlang.c (wild_sort): Likewise. (lookup_name): Likewise. (check_excluded_libs): Likewise. * ldmisc.c (vfinfo): Likewise. * pe-dll.c (libnamencmp): Likewise. (auto_export): Likewise. (pe_dll_generate_implib): Likewise. * testplug.c (onclaim_file): Likewise.
This commit is contained in:
11
ld/pe-dll.c
11
ld/pe-dll.c
@ -24,6 +24,7 @@
|
||||
#include "bfd.h"
|
||||
#include "bfdlink.h"
|
||||
#include "libiberty.h"
|
||||
#include "filenames.h"
|
||||
#include "safe-ctype.h"
|
||||
|
||||
#include <time.h>
|
||||
@ -343,7 +344,7 @@ static const autofilter_entry_type autofilter_liblist[] =
|
||||
returning zero if so or -1 if not. */
|
||||
static int libnamencmp (const char *libname, const autofilter_entry_type *afptr)
|
||||
{
|
||||
if (strncmp (libname, afptr->name, afptr->len))
|
||||
if (filename_ncmp (libname, afptr->name, afptr->len))
|
||||
return -1;
|
||||
|
||||
libname += afptr->len;
|
||||
@ -619,13 +620,13 @@ auto_export (bfd *abfd, def_file *d, const char *n)
|
||||
if (ex->type == EXCLUDELIBS)
|
||||
{
|
||||
if (libname
|
||||
&& ((strcmp (libname, ex->string) == 0)
|
||||
&& ((filename_cmp (libname, ex->string) == 0)
|
||||
|| (strcasecmp ("ALL", ex->string) == 0)))
|
||||
return 0;
|
||||
}
|
||||
else if (ex->type == EXCLUDEFORIMPLIB)
|
||||
{
|
||||
if (strcmp (abfd->filename, ex->string) == 0)
|
||||
if (filename_cmp (abfd->filename, ex->string) == 0)
|
||||
return 0;
|
||||
}
|
||||
else if (strcmp (n, ex->string) == 0)
|
||||
@ -2701,7 +2702,7 @@ pe_dll_generate_implib (def_file *def, const char *impfilename, struct bfd_link_
|
||||
{
|
||||
if (ex->type != EXCLUDEFORIMPLIB)
|
||||
continue;
|
||||
found = (strcmp (ex->string, ibfd->filename) == 0);
|
||||
found = (filename_cmp (ex->string, ibfd->filename) == 0);
|
||||
}
|
||||
/* If it matched, we must open a fresh BFD for it (the original
|
||||
input BFD is still needed for the DLL's final link) and add
|
||||
@ -2731,7 +2732,7 @@ pe_dll_generate_implib (def_file *def, const char *impfilename, struct bfd_link_
|
||||
newbfd = NULL;
|
||||
while ((newbfd = bfd_openr_next_archived_file (arbfd, newbfd)) != 0)
|
||||
{
|
||||
if (strcmp (newbfd->filename, ibfd->filename) == 0)
|
||||
if (filename_cmp (newbfd->filename, ibfd->filename) == 0)
|
||||
break;
|
||||
}
|
||||
if (!newbfd)
|
||||
|
Reference in New Issue
Block a user