summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuan-Lin Chen <kuanlinchentw@gmail.com>2017-09-27 13:04:35 +0800
committerKuan-Lin Chen <kuanlinchentw@gmail.com>2017-09-27 13:07:19 +0800
commitcd28e7aaf35f7de5033ecd619b56064136bb190b (patch)
tree8774e7bfbf0f462964a6299144efe06bba9cbb89
parent25c7861f70b2fcde6c4e3454c269da20ff141883 (diff)
downloadbinutils-gdb-cd28e7aaf35f7de5033ecd619b56064136bb190b.tar.gz
nds32: Fix a tautological comparison.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-nds32.c2
2 files changed, 6 insertions, 1 deletions
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 <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
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;