aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-10-08 09:48:27 +1030
committerAlan Modra <amodra@gmail.com>2024-10-08 15:12:14 +1030
commitb0623fda9f05d10abe231197028b66ad66386353 (patch)
treee1c3df8c4e2b86e4fdf5f687a582d22fdbc7860e /binutils
parente8859e49472743b974eac2ae2f9682ef3a3209a4 (diff)
downloadgdb-b0623fda9f05d10abe231197028b66ad66386353.zip
gdb-b0623fda9f05d10abe231197028b66ad66386353.tar.gz
gdb-b0623fda9f05d10abe231197028b66ad66386353.tar.bz2
Revert "dlltool fixes for commit 68bbe1183379"
This reverts commit 06116013f80e474800cfb122924bc2a6f060606a.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/dlltool.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index d6821ca..9acd080 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -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;