aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-nds32.c
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 /bfd/elf32-nds32.c
parent25c7861f70b2fcde6c4e3454c269da20ff141883 (diff)
downloadgdb-cd28e7aaf35f7de5033ecd619b56064136bb190b.zip
gdb-cd28e7aaf35f7de5033ecd619b56064136bb190b.tar.gz
gdb-cd28e7aaf35f7de5033ecd619b56064136bb190b.tar.bz2
nds32: Fix a tautological comparison.
Diffstat (limited to 'bfd/elf32-nds32.c')
-rw-r--r--bfd/elf32-nds32.c2
1 files changed, 1 insertions, 1 deletions
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;