From: Kuan-Lin Chen Date: Wed, 27 Sep 2017 05:04:35 +0000 (+0800) Subject: nds32: Fix a tautological comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd28e7aaf35f7de5033ecd619b56064136bb190b;p=binutils-gdb.git nds32: Fix a tautological comparison. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aa55ed5afb9..1a4bde1ee65 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-09-27 Kuan-Lin Chen + + * elf32-nds32.c (nds32_elf_relax_section): Fix a tautological + comparison. + 2017-09-26 H.J. Lu PR ld/22199 diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index 0b0de62c062..ddf14650cd3 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -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;