nds32: Fix a tautological comparison.

This commit is contained in:
Kuan-Lin Chen 2017-09-27 13:04:35 +08:00
parent 25c7861f70
commit cd28e7aaf3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
* elf32-nds32.c (nds32_elf_relax_section): Fix a tautological
comparison.
2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22199

View File

@ -11909,7 +11909,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec,
* no reloc entry. */
if (bfd_link_relocatable (link_info)
|| (sec->flags & SEC_RELOC) == 0
|| (sec->flags & SEC_EXCLUDE) == 1
|| (sec->flags & SEC_EXCLUDE) != 0
|| (sec->flags & SEC_CODE) == 0
|| sec->size == 0)
return TRUE;