From cd28e7aaf35f7de5033ecd619b56064136bb190b Mon Sep 17 00:00:00 2001 From: Kuan-Lin Chen Date: Wed, 27 Sep 2017 13:04:35 +0800 Subject: [PATCH] nds32: Fix a tautological comparison. --- bfd/ChangeLog | 5 +++++ bfd/elf32-nds32.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2