]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix snafu in previous delta for elf32-csky.c
authorNick Clifton <nickc@redhat.com>
Tue, 17 Jan 2023 12:55:33 +0000 (12:55 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 17 Jan 2023 12:55:33 +0000 (12:55 +0000)
bfd/elf32-csky.c

index 3f4277b71db53ba7c4122e4dd6b0073beb1575c0..76567c722bbc6c26d1ee3ab04880394931c4270a 100644 (file)
@@ -2864,7 +2864,6 @@ elf32_csky_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
   bfd *obfd = info->output_bfd;
   obj_attribute *in_attr;
   obj_attribute *out_attr;
-  obj_attribute tattr;
   csky_arch_for_merge *old_arch = NULL;
   csky_arch_for_merge *new_arch = NULL;
   int i;
@@ -3064,8 +3063,8 @@ csky_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
   sec_name = get_elf_backend_data (ibfd)->obj_attrs_section;
 
   if (bfd_get_section_by_name (ibfd, sec_name) == NULL
-      || (new_flags & (CSKY_ARCH_MASK | CSKY_ABI_MASK) !=
-         old_flags & (CSKY_ARCH_MASK | CSKY_ABI_MASK)))
+      || ((new_flags & (CSKY_ARCH_MASK | CSKY_ABI_MASK)) !=
+         (old_flags & (CSKY_ARCH_MASK | CSKY_ABI_MASK))))
     {
       /* Input BFDs have no ".csky.attribute" section.  */
       new_arch = csky_find_arch_with_eflag (new_flags & CSKY_ARCH_MASK);