Add readahead cache to gdb's vFile:pread
[binutils-gdb.git] / bfd / peXXigen.c
index e01cfcdd6726328b5574221ded2fa128a1e06ece..a1baaef5c20e8532873809ba870ab84dbd633223 100644 (file)
@@ -1060,8 +1060,8 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out)
   }
 
   if (coff_data (abfd)->link_info
-      && ! coff_data (abfd)->link_info->relocatable
-      && ! coff_data (abfd)->link_info->shared
+      && ! bfd_link_relocatable (coff_data (abfd)->link_info)
+      && ! bfd_link_pic (coff_data (abfd)->link_info)
       && strcmp (scnhdr_int->s_name, ".text") == 0)
     {
       /* By inference from looking at MS output, the 32 bit field