]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Revert "dlltool fixes for commit 68bbe1183379"
authorAlan Modra <amodra@gmail.com>
Mon, 7 Oct 2024 23:18:27 +0000 (09:48 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 8 Oct 2024 04:42:14 +0000 (15:12 +1030)
This reverts commit 06116013f80e474800cfb122924bc2a6f060606a.

binutils/dlltool.c

index d6821caaf21b6b152cac8ab8f1719e45364dabaf..9acd080b7b6de6e615d90ed57fd88d09db306b95 100644 (file)
@@ -1539,7 +1539,7 @@ filter_symbols (bfd *abfd, void *minisyms, long symcount, unsigned int size)
               || bfd_is_com_section (sym->section))
              && ! bfd_is_und_section (sym->section));
 
-      keep = keep && sym->name != NULL && !match_exclude (sym->name);
+      keep = keep && match_exclude (sym->name);
 
       if (keep)
        {
@@ -3197,10 +3197,9 @@ identify_member_contains_symname (bfd  * abfd,
 
   for (i = 0; i < number_of_symbols; i++)
     {
-      if (symbol_table[i]->name != NULL
-         && strncmp (symbol_table[i]->name,
-                     search_data->symname,
-                     strlen (search_data->symname)) == 0)
+      if (strncmp (symbol_table[i]->name,
+                  search_data->symname,
+                  strlen (search_data->symname)) == 0)
        {
          search_data->found = true;
          break;