nds32: Fix a tautological comparison.
authorKuan-Lin Chen <kuanlinchentw@gmail.com>
Wed, 27 Sep 2017 05:04:35 +0000 (13:04 +0800)
committerKuan-Lin Chen <kuanlinchentw@gmail.com>
Wed, 27 Sep 2017 05:07:19 +0000 (13:07 +0800)
bfd/ChangeLog
bfd/elf32-nds32.c

index aa55ed5afb9c1b594d8b11564e49eb76b7437730..1a4bde1ee65d354fe537cf3ad78ce53b0a702804 100644 (file)
@@ -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
index 0b0de62c0624391313018b4f6628ddf60ee1bf2f..ddf14650cd3be66c738ab68c1d0f7c27ef437c31 100644 (file)
@@ -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;