Added code to deal with filenames less than 9 characters in a COFF file.
authorSean Eric Fagan <sef@cygnus>
Fri, 7 Jun 1991 19:37:42 +0000 (19:37 +0000)
committerSean Eric Fagan <sef@cygnus>
Fri, 7 Jun 1991 19:37:42 +0000 (19:37 +0000)
bfd/ChangeLog
bfd/coffcode.h

index b1310b81a5dcd770c8b7be505a2a6ac4e9d17a64..1148a0ed394d537c87c67d0a7df56ab087750e51 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jun  7 12:35:46 1991  Sean Fagan  (sef at cygint.cygnus.com)
+
+       * coffcode.h (coff_swap_aux_in): added else case to deal with
+       filenames less than 9 characters.
+
 Thu Jun  6 18:27:38 1991  Steve Chamberlain  (steve at cygint.cygnus.com)
 
        * ../include/oasys.h oasys.c (oasys_archive_p): fixed so it works
index 8e6627b3df69bab0cd679db6c8e7fc175f3b0438..63630c38b3670bdca6c5a8b2365549bb426dd59b 100644 (file)
@@ -205,6 +205,9 @@ DEFUN(coff_swap_aux_in,(abfd, ext, type, class, in),
     if (ext->x_file.x_fname[0] == 0) {
       in->x_file.x_n.x_zeroes = 0;
       in->x_file.x_n.x_offset  = bfd_h_get_32(abfd, ext->x_file.x_n.x_offset);
+    } else {
+      memcpy (in->x_file.x_fname, ext->x_file.x_fname,
+             sizeof (in->x_file.x_fname));
     }
 
     break;