* cris.h (R_CRIS_32_IE): New relocation.
[deliverable/binutils-gdb.git] / binutils / dlltool.c
index fff8b77e9fecb1c7dc7360c8b716026f88be949b..89508f32ae9b5dd67af4dcb8c7341fcf8ccac8be 100644 (file)
@@ -1213,7 +1213,7 @@ run (const char *what, char *args)
 
   if (pid == -1)
     {
-      inform (strerror (errno));
+      inform ("%s", strerror (errno));
 
       fatal (errmsg_fmt, errmsg_arg);
     }
@@ -1998,7 +1998,7 @@ gen_exp_file (void)
       bfd_vma addr;
       bfd_vma need[PAGE_SIZE];
       bfd_vma page_addr;
-      int numbytes;
+      bfd_size_type numbytes;
       int num_entries;
       bfd_vma *copy;
       int j;
@@ -2010,7 +2010,8 @@ gen_exp_file (void)
       numbytes = ftell (base_file);
       fseek (base_file, 0, SEEK_SET);
       copy = xmalloc (numbytes);
-      fread (copy, 1, numbytes, base_file);
+      if (fread (copy, 1, numbytes, base_file) < numbytes)
+       fatal (_("failed to read the number of entries from base file"));
       num_entries = numbytes / sizeof (bfd_vma);
 
 
@@ -3106,7 +3107,7 @@ identify_search_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNU
               free (identify_dll_name);
             }
         }
-      identify_dll_name = (char*) xstrdup (data);
+      identify_dll_name = xstrdup ((char*) data);
     }
 
   free (data);
This page took 0.023133 seconds and 4 git commands to generate.