Fix compile time warnings building the binutils with gcc 7.1.1.
[deliverable/binutils-gdb.git] / bfd / elf32-or1k.c
index 8e0ef727b0f1e72949a79fabdb3bc04a66138753..583f2d49aef01b494d54ea7ca70ec92dff208f21 100644 (file)
@@ -1404,7 +1404,7 @@ or1k_elf_check_relocs (bfd *abfd,
 
           /* PR15323, ref flags aren't set for references in the same
              object.  */
-          h->root.non_ir_ref = 1;
+         h->root.non_ir_ref_regular = 1;
         }
 
       switch (ELF32_R_TYPE (rel->r_info))
@@ -1949,7 +1949,7 @@ or1k_elf_finish_dynamic_symbol (bfd *output_bfd,
                        + h->root.u.def.section->output_offset);
       rela.r_info = ELF32_R_INFO (h->dynindx, R_OR1K_COPY);
       rela.r_addend = 0;
-      if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
+      if (h->root.u.def.section == htab->root.sdynrelro)
        s = htab->root.sreldynrelro;
       else
        s = htab->root.srelbss;
This page took 0.025282 seconds and 4 git commands to generate.