*** empty log message ***
authorSteve Chamberlain <steve@cygnus>
Thu, 4 Apr 1991 15:34:09 +0000 (15:34 +0000)
committerSteve Chamberlain <steve@cygnus>
Thu, 4 Apr 1991 15:34:09 +0000 (15:34 +0000)
bfd/ieee.c
bfd/oasys.c
bfd/targets.c

index f69adbde3c1c602ce43178516bc9ba40e0315abb..8a2f86de339c451c3410cf3aecb10dc2936a4dae 100644 (file)
@@ -1864,7 +1864,7 @@ bfd_target ieee_vec =
   (HAS_RELOC | EXEC_P |                /* object flags */
    HAS_LINENO | HAS_DEBUG |
    HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED),
-  (SEC_CODE|SEC_DATA|SEC_ROM
+  (SEC_CODE|SEC_DATA|SEC_ROM|SEC_HAS_CONTENTS
    |SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
   0,                           /* valid reloc types */
   ' ',                         /* ar_pad_char */
index c68ce0704e3e639b633b2706791a77556bfd3a8b..995d962aee1f6647809313f38278cbd8c96fc473 100644 (file)
@@ -293,7 +293,8 @@ bfd *abfd;
   while (loop) {
     oasys_record_union_type record;
     oasys_read_record(abfd, &record);
-
+    if (record.header.length < sizeof(record.header))
+      return (bfd_target *)NULL;
 
     switch ((oasys_record_enum_type)(record.header.type)) {
     case oasys_record_is_header_enum:
index d087f459ec82347630092840617bf439a1629eb7..252cbe7ca4adbfb519853abfa48d00f45e0ecfd2 100644 (file)
@@ -40,7 +40,7 @@ extern bfd_target m88k_bcs_vec;
 bfd_target *target_vector[] = 
   {
 #ifndef INTEL960VERSION
-    &srec_vec,
+
 
 #endif /* INTEL960VERSION */
     &ieee_vec,
@@ -51,6 +51,6 @@ bfd_target *target_vector[] =
     &m88k_bcs_vec,
     &b_out_vec_big_host,
     &b_out_vec_little_host,
-
+    &srec_vec,
     NULL
     };