From: Kuan-Lin Chen Date: Wed, 27 Sep 2017 05:04:35 +0000 (+0800) Subject: nds32: Fix a tautological comparison. X-Git-Tag: users/ARM/embedded-binutils-master-2017q4~924 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd28e7aaf35f7de5033ecd619b56064136bb190b;p=external%2Fbinutils.git nds32: Fix a tautological comparison. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aa55ed5..1a4bde1 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 0b0de62..ddf1465 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;