diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-02-28 18:34:52 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2011-02-28 18:34:52 +0000 |
commit | 426278217bb00a4eb13f360b408fae9368f3a3af (patch) | |
tree | ac8da852b38f21121ea96de78d48e623329498fd /ld/pe-dll.c | |
parent | 8b6efd89a4135971b748c958a852d093b3d79d3d (diff) | |
download | gdb-426278217bb00a4eb13f360b408fae9368f3a3af.zip gdb-426278217bb00a4eb13f360b408fae9368f3a3af.tar.gz gdb-426278217bb00a4eb13f360b408fae9368f3a3af.tar.bz2 |
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.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r-- | ld/pe-dll.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c index 0c1c0de..7de718a 100644 --- a/ld/pe-dll.c +++ b/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) |