aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1991-06-07 19:37:42 +0000
committerSean Eric Fagan <sef@cygnus>1991-06-07 19:37:42 +0000
commit2099685bad5eb563c142a12a7f0750b14442ecc5 (patch)
treee86e80a6de976e9f30eabeec2c524739964f4e0f /bfd/coffcode.h
parent33cc288d6bb8f5f80ca98d725328ff819aeb5abf (diff)
downloadgdb-2099685bad5eb563c142a12a7f0750b14442ecc5.zip
gdb-2099685bad5eb563c142a12a7f0750b14442ecc5.tar.gz
gdb-2099685bad5eb563c142a12a7f0750b14442ecc5.tar.bz2
Added code to deal with filenames less than 9 characters in a COFF file.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 8e6627b..63630c3 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;