NDS32 build fixes
[binutils-gdb.git] / ld / ldwrite.c
index f57b88dd55a327012e7ba5710feb67a58178e3f3..c833bbbada6285fab6f36896f32aed090010cc49 100644 (file)
@@ -488,13 +488,13 @@ split_sections (bfd *abfd, struct bfd_link_info *info)
                  || info->strip == strip_some)
                thislines = sec->lineno_count;
 
-             if (info->relocatable)
+             if (bfd_link_relocatable (info))
                thisrelocs = sec->reloc_count;
 
              thissize = sec->size;
 
            }
-         else if (info->relocatable
+         else if (bfd_link_relocatable (info)
                   && (p->type == bfd_section_reloc_link_order
                       || p->type == bfd_symbol_reloc_link_order))
            thisrelocs++;